Fix getViewCount() in YoutubeStreamExtractor

pull/261/head
wb9688 2020-02-25 10:08:52 +01:00 zatwierdzone przez TobiGr
rodzic 76d54abdbf
commit 26ea3dceb6
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -242,7 +242,7 @@ public class YoutubeStreamExtractor extends StreamExtractor {
views = playerResponse.getObject("videoDetails").getString("viewCount");
} 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");
}