MiRO92 / uYou-for-YouTube

Enhance Your YouTube Experience
https://miro92.com
2.41k stars 14.19k forks source link

Download speeds are slow #376

Closed aaronliu0130 closed 9 months ago

aaronliu0130 commented 9 months ago

Opening this since #211 was mysteriously closed. I'd recommend using yt-dlp as the download engine.

vux992 commented 9 months ago

Can confirm, my download speed on the app is 300kbps. Using Cox fiber 1gbps.

aaronliu0130 commented 9 months ago

Lucky you, mine is only 32 (while my network speeds usually go to ~30mbps)

MiRO92 commented 9 months ago

I take download links directly from the YouTube app, unlike other tweaks that decrypt the download links using their servers. As a result, I have no control over the download speed, as it is dependent on YouTube's servers. Additionally, please note that YouTube may impose download limits for certain video qualities, which can affect the speed. Thank you for your understanding

aaronliu0130 commented 9 months ago

Thanks for the explanation. Is it possible to add link decryption from yt-dlp's code? Currently, every single quality gives me a speed of 32kb, which is way slower than how my video loads. I can finish playing a video much faster than uYou's downloads.

Edit: They seem to use the https://github.com/tombulled/innertube API

MiRO92 commented 9 months ago

Thanks for the explanation. Is it possible to add link decryption from yt-dlp's code? Currently, every single quality gives me a speed of 32kb, which is way slower than how my video loads. I can finish playing a video much faster than uYou's downloads.

Edit: They seem to use the https://github.com/tombulled/innertube API

I was decrypting the links using yt-dlp on my server back when I first released uYou, but then I removed it because I didn't want uYou to depend on my server. This decision was made due to the possibility of my server being closed at any given time, as uYou is a free service and I cannot afford to keep my server running for free indefinitely. If that were to happen, uYou would stop working, so I went ahead and removed it.

aaronliu0130 commented 9 months ago

Is it possible for uYou to query Innertube or do something else directly? Or maybe even bundle yt-dlp's YouTube extractor? YouTube Reborn also has download speeds that seem normal

yodaluca23 commented 9 months ago

I was decrypting the links using yt-dlp on my server back when I first released uYou, but then I removed it because I didn't want uYou to depend on my server. This decision was made due to the possibility of my server being closed at any given time, as uYou is a free service and I cannot afford to keep my server running for free indefinitely. If that were to happen, uYou would stop working, so I went ahead and removed it.

Maybe you could keep both so that as long as your servers up, we can get the high download speeds, but if it ever goes down, we can still download just with slower speeds.

aaronliu0130 commented 9 months ago

I don't think we need servers, why not just run the commands locally

arichornlover commented 9 months ago

Is it possible for uYou to query Innertube or do something else directly? Or maybe even bundle yt-dlp's YouTube extractor? YouTube Reborn also has download speeds that seem normal

The url you shown does not even redirect to YouTube Reborn. this is the Tweak. https://github.com/arichornlover/YouTube-Reborn-v5/tree/main-nightly (Reborn v5 Beta)

aaronliu0130 commented 8 months ago

YTMusicUltimate also released a fast downloader last month.