mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-29 00:10:35 +05:30
Fix YouTube videos with no views
This commit is contained in:
parent
65a7eda446
commit
904c9d681f
@ -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…
x
Reference in New Issue
Block a user