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

Youtube links not playable #2

Closed
popcornmix opened this issue Oct 11, 2021 · 1 comment
Closed

Youtube links not playable #2

popcornmix opened this issue Oct 11, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@popcornmix
Copy link

Youtube has implemented throttling to non-preferred clients, that makes real time playback (almost) impossible.
See for example:
anxdpanic/plugin.video.youtube#163
ytdl-org/youtube-dl#29326

There are two possible fixes, you can supply the magic &n=<val> parameter to fetch link, or you can identify as Android.
There is no fix in youtube-dl, but yt-dlp does have a fix (the Android one)

The following replaces the embedded youtube-dl with yt-dlp (which is a compatible fork), and fixes the throttling issue.

wget --no-check-certificate -qO- https://github.com/yt-dlp/yt-dlp/archive/refs/heads/master.zip | unzip - 'yt-dlp-master/yt_dlp/*' -d '/tmp/' && \
rm -rf /~/.kodi/addons/plugin.video.sendtokodi.python3/youtube_dl && \
mv /tmp/yt-dlp-master/yt_dlp/ ~/.kodi/addons/plugin.video.sendtokodi.python3/youtube_dl && \
rm -rf /tmp/tmp/yt-dlp-master
@firsttris
Copy link
Owner

@firsttris firsttris added the bug Something isn't working label Nov 17, 2021
@nullket nullket closed this as completed Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants