Unverified Commit 8a9ae32e authored by Tobias Groza's avatar Tobias Groza Committed by GitHub
Browse files

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

Fix YouTube videos with no views
parents 6fd9b38a 904c9d68
......@@ -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));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment