Skip to content
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

YouTubeKitError.htmlParseError & slow download speed #39

Open
iandundas opened this issue Apr 5, 2024 · 1 comment
Open

YouTubeKitError.htmlParseError & slow download speed #39

iandundas opened this issue Apr 5, 2024 · 1 comment

Comments

@iandundas
Copy link

iandundas commented Apr 5, 2024

Hi! :)

I'm getting a YouTubeKitError.htmlParseError being thrown in Extraction.getYTPlayerConfig() for the pattern ytplayer\.config\s*=\s*

This leads to pattern (ytplayer\.config\s*=\s*) failed: The operation couldn’t be completed. being logged.

(example URL: https://www.youtube.com/watch?v=8j6pkKwpOFk)

After that, the download proceeds but is really slow. (this may or may not be related to the above).

I guess YouTube is throttling the download, because (it's really slow, and) if I also just wget the URL that YouTubeKit is downloading, the download speed is get is like 11KB/s (on a gigabit/ethernet line)

CleanShot 2024-04-05 at 10 58 03@2x

My guess is that the HTML parse for config is failing, and the fallback only allows slow downloads? Just a guess though.

Thanks for reading!

@alexeichhorn
Copy link
Owner

This is likely not related. YouTube downloads are known to be throttled sometimes on purpose.
There is some ways to circumvent it and get fast downloads - maybe I implement it in the future.
But for now you can take a look in #17 were I described it a little.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants