-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent YouTube throttling #2222
Conversation
This comment has been minimized.
This comment has been minimized.
Hello, Thank you for your contribution. In the PR #2220 I'm working on fetching the videoplayback URLs from the internal YouTube API using an Android client. I do think the given videoplayback URLs aren't throttled but I'm not sure that's why could you take a look at? |
You should split the fetching and execute parts, btw. Add a Job to fetch the function every hour or every day, idk, store the string, and then run it when a video needs it. |
@SamantazFox Yes, I totally agree with you. I will close this PR. |
Hi there, I'm trying to fix #2194.
Though this is unfinished and a bit unstable, the parch seems working on PC/RPI4.
(I'm testing on a docker instance. #2147 needs
RUN apk add --no-cache make
to build this patch.)Unfortunately it now requires a real JS interpreter (duktape) because the decryption code was too complicated without it.
ytdl-org/youtube-dl#29326 says
but it's not changed so often, and fetching it for every video is pretty expensive. This needs more investigating.
Anyway, I implemented two level caches to prevent refetching it for every video. The decryption function is called dozens times on page load. (you can see
cache #1
andcache #2
in the debug log)