mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2025-09-02 15:25:32 +00:00
Fix getViewCount() in YoutubeStreamExtractor
This commit is contained in:
@@ -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");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user