woefe / ytcc

Command line tool to keep track of your favorite playlists on YouTube and many other places.
GNU General Public License v3.0
178 stars 20 forks source link

Support for yt-dlp as youtube-dl is being actively throttled by google #100

Closed incompetentcoder closed 2 years ago

incompetentcoder commented 2 years ago

Hello. Sadly, youtube-dl is being throttled, yt-dlp has a workaround for it and is almost a drop-in replacement, the python module however is in yt_dlp and not youtube_dl. I just replaced "youtube_dl" with "yt_dlp" in core.py and updater.py and it now works just fine. Maybe add a check if youtube_dl fails to look for yt_dlp or add a config option to specify which "youtube downloader"?

Thanks for your work!

Glandos commented 2 years ago

I need to look for the upstream issue. Here it is: https://github.com/ytdl-org/youtube-dl/issues/30075

EmRowlands commented 2 years ago

You can already specify this in mpv options, see: https://github.com/mpv-player/mpv/issues/9257#issuecomment-931558311

woefe commented 2 years ago

I've tried to incorporate yt-dlp. It works, but ytcc subscribe and ytcc update are noticeably slower with yt-dlp. Haven't found the time to troubleshoot further. The current work is in #101

Thank you @EmRowlands for the link to that issue. I think for now that's the best workaround. Fast ytcc update with youtube-dl and playback in mpv without stuttering.

woefe commented 2 years ago

Sorted out some of the performance issues. Starting with 3a4e7bf, ytcc prefers yt-dlp over youtube-dl if yt-dlp is installed.

incompetentcoder commented 2 years ago

Thanks!