It consumes a lot of data to download the video and thumbnails page. Please put an option to reduce the quality of the thumbnails
Please change issue name to "Add option to reduce thumbnail resolution" or similar. I'm not entirely sure that doing this is possible, since I don't know if YouTube provides different sizes. In the meantime, you can try disabling loading thumbnails entirely.
@gkeegan YouTube provides different sizes, but the extractor only extracts the one with the highest resolution
I though about this while working on the extraction of the new YouTube version, too. I think we should extract all thumbnails and let the client decide which thumbnail to load.
@TobiGr: I was just about to reply the same thing.
This line give the highest quality.
For lower quality, use thumbnailPath instead.
Also, on this line, it doesn't give the max resolution. previewPath gives higher resolution.
But, list items don't need high quality, it's already showing fine, at least on mobile.
I changed only for video detail, because it's really visible: low quality | high quality.
I think we should change Load thumbnails setting, from a ON/OFF switch, to a list:
More settings (for example choose the exact resolution for YouTube from the 4 available) would make this setting an airplane cockpit.
Not only is the problem with thumbnails, but when thumbnails are disabled, a lot of data is still used to load the video page itself
That can't be reduced, it's just the page size provided by YouTube, so we can't change it...
That can't be reduced, it's just the page size provided by YouTube, so we can't change it...
In fact, it can with pbj=1 parameter. See https://github.com/TeamNewPipe/NewPipeExtractor/pull/261#discussion_r384300531 and TeamNewPipe/NewPipeExtractor#262.
With pbj=1, pages will be more like 20-30 KB gzipped.
In fact, it can with pbj=1 parameter. See TeamNewPipe/NewPipeExtractor#261 (comment) and TeamNewPipe/NewPipeExtractor#262.
Yeah, now I've seen @wb9688's improvements, 6 days ago I didn't ;-)
Also, this issue was probably about pre-0.18.5.
@AlbahrawyAlalimi fixed in next version
@Stypox: The thumbnail stuff isn't fixed in the next version though. I'll fix that on the NewPipeExtractor-side soonâ„¢ though
Version 0.18.7 and still takes more than 1MB to download the video page with thumbnails disabled!
Most helpful comment
@TobiGr: I was just about to reply the same thing.