ysard / cookie-quick-manager

An addon to manage (view, search, create, edit, remove, backup, restore) cookies on Firefox.
https://addons.mozilla.org/firefox/addon/cookie-quick-manager/
GNU General Public License v3.0
253 stars 40 forks source link

Netscape format not working with youtube-dl #96

Open alitajelsir opened 4 years ago

alitajelsir commented 4 years ago
TpmKranz commented 4 years ago

I suspect it has something to do with this: https://stackoverflow.com/a/11536599

At least for me, the header is missing in exported files and that's what caused problems with youtube-dl.

fmorato commented 4 years ago

Just had the same issue and came here to report. Indeed, the info in that SO question did the trick.

The file exported by the extension is missing the first line, which should be either

# HTTP Cookie File

or

# Netscape HTTP Cookie File

Adding that as the first line of the file makes it work with youtube-dl.

TFWol commented 2 years ago

I wish this add-on had the option to insert that comment line since most of the programs that use this format look for that header...

Another thing that causes issues are the www lines that have a leading '.' ex: .www.somesite.com

Explorare commented 2 years ago

youtube-dl only accepts tabs rather than spaces. This will also cause the issue. ref: --cookies: be more flexible in the file format · Issue #4539 · ytdl-org/youtube-dl