Fix getViewCount() in YoutubeStreamExtractor
This commit is contained in:
parent
76d54abdbf
commit
26ea3dceb6
1 changed files with 1 additions and 1 deletions
|
@ -242,7 +242,7 @@ public class YoutubeStreamExtractor extends StreamExtractor {
|
||||||
views = playerResponse.getObject("videoDetails").getString("viewCount");
|
views = playerResponse.getObject("videoDetails").getString("viewCount");
|
||||||
} catch (Exception ignored) {}
|
} catch (Exception ignored) {}
|
||||||
}
|
}
|
||||||
if (views != null) return Long.parseLong(views);
|
if (views != null) return Long.parseLong(Utils.removeNonDigitCharacters(views));
|
||||||
throw new ParsingException("Could not get view count");
|
throw new ParsingException("Could not get view count");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue