yt-dlp that works with Waterfox

rado84

Well-Known Member
Joined
Feb 25, 2019
Messages
1,101
Reaction score
943
Credits
8,526
For some reason the forum is slow AF today and cuts more than half of the content I wrote. If you can't see it, simply click "Quote" and it will appear.

As you have probably noticed, since today YT requires cookies to prove you're not a bot. Naturally yt-dlp asks for cookies. But as you can imagine, Waterfox wasn't included in the list of browsers that yt-dlp supports. I asked the developer for a feature, but instead of adding it, he started suggesting "solutions" (none of which worked, btw) based on the dellusion that fork = clone. (facepalm) So, once again I had to fix it. Frankly the dev opened a lot more work to himself to suggest non-working "solutions", instead of doing what I did - I simply added ~/.waterfox to the logic of cookies.py in the source code. And voila - it worked like a charm. So here I am again, sharing something working with Waterfox - because someone was too lazy to add a single word to the code.

I decided to name the directory of the working yt-dlp "Waterfox-dlp". You can place it in your /home/$USER and then simply call it by cd in it and then ./yt-dlp.sh [OPTIONS] [FLAGS] . Here's a script as an example how I call it:
Code:
read -p "Enter YT URL: " URL
(cd /home/rado/Waterfox-dlp && ./yt-dlp.sh -S res:1080 --merge-output-format mkv --cookies-from-browser firefox -o "/B/123/%(title)s.%(ext)s" "$URL")

Ofc you can change the merge output format or remove it completely, in which case it will download the default mp4 format, as well as the output path. This is just an example, after all. You can download Waterfox-dlp from my repository:


I havent' added a readme there yet bc frankly I don't see the point. What you will download is the source code of yt-dlp 2026.07.04 with my fix to work with Waterfox. Nothing is compiled, therefore nothing is hidden. I never hide code and never will. If yt-dlp receives an update in the future and it DOESN'T include Waterfox (I suspect it won't bc the developer got offended that a Linux user knew how to fix it better than him), I'll update Waterfox-dlp in my repository.
 
Last edited:


Follow Linux.org

Members online


Latest posts

Top