alexta69 / metube

Self-hosted YouTube downloader (web UI for youtube-dl / yt-dlp)
GNU Affero General Public License v3.0
3.97k stars 264 forks source link

Allow multiple cookies. #338

Closed nodew closed 6 months ago

nodew commented 8 months ago

For example:

|- cookies
   |- www.youtube.cookies
   |- www.bilibili.cookies

When downloading videos with given URL, it should search the cookies folder first, if there's no match domains, then download without cookie, otherwise, download with the matched cookies.

PikuZheng commented 8 months ago

you can add them to one file.

nodew commented 8 months ago

Adding to one file might solve the problem, but it's not a good solution as when you want to update the cookie.

PikuZheng commented 8 months ago

Have you tried file wildcards? like YTDL_OPTIONS={"cookiefile":"/metube/cookies/*.txt"}

alexta69 commented 6 months ago

Such functionality would need to be added by yt-dlp (if it isn't there already), and not by MeTube, so please reopen on that project if necessary.