Fix YouTube videos with no views

This commit is contained in:
wb9688 2020-03-17 15:00:07 +01:00
parent 65a7eda446
commit 904c9d681f
1 changed files with 2 additions and 0 deletions

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));
}