mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-14 06:10:33 +05:30
Merge pull request #292 from wb9688/fix-yt-no-views
Fix YouTube videos with no views
This commit is contained in:
commit
8a9ae32e6b
@ -279,6 +279,8 @@ public class YoutubeStreamExtractor extends StreamExtractor {
|
|||||||
if (views == null) throw new ParsingException("Could not get view count");
|
if (views == null) throw new ParsingException("Could not get view count");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (views.toLowerCase().contains("no views")) return 0;
|
||||||
|
|
||||||
return Long.parseLong(Utils.removeNonDigitCharacters(views));
|
return Long.parseLong(Utils.removeNonDigitCharacters(views));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user