Skip to content

Commit 9767b4a

Browse files
committed
Fix view count bug
1 parent 122c464 commit 9767b4a

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

services/youtube/YoutubeStreamInfoItemExtractor.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,7 @@ public long getViewCount() throws ParsingException {
117117
}
118118
}
119119

120-
output = Parser.matchGroup1("([0-9,\\. ]*)", input)
121-
.replace(" ", "")
122-
.replace(".", "")
123-
.replace(",", "");
120+
output = input.replaceAll("[^0-9]+", "");
124121

125122
try {
126123
return Long.parseLong(output);

0 commit comments

Comments
 (0)