@tagomago too bad :/ Though you can probably take inspiration from the yt-dlp-drop-in AUR package someone posted in the answer. Shouldn't be too hard to adapt for debian?
And yt-dlp seems similar enough that it can be used as a drop in replacement with mpv, and anecdotally, it didn't break any of my homemade scripts that used youtube-dl
For any of y’all that have been having issues with youtube-dl being throttled to ridiculous levels, it seems that google is on it’s BS again, and that youtube-dl isn’t maintained anymore [0].
That said you can instead use the yt-dlp fork that fixes this issue and probably more [1]
Also, if you’ve been using mpv to watch youtube, you can tell it to use yt-dlp by adding this line to .config/mpv/mpv.conf : script-opts-append=ytdl_hook-ytdl_path=yt-dlp [2]