2
0
mirror of https://github.com/TeamNewPipe/NewPipeExtractor synced 2025-08-30 13:57:46 +00:00

Merge pull request #292 from wb9688/fix-yt-no-views

Fix YouTube videos with no views
This commit is contained in:
Tobias Groza
2020-03-24 20:27:08 +01:00
committed by GitHub

View File

@@ -279,6 +279,8 @@ public class YoutubeStreamExtractor extends StreamExtractor {
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));
}