fe80Grau / ytdlp2STRM

A little script to serve Youtube / Twitch / Crunchyroll videos without storage it. Uses yt-dlp HTTP data throught Flask and dynamic URLs. We can use this dynamic URLs to set STRM files.
https://github.com/fe80Grau/ytdlp2STRM
MIT License
206 stars 19 forks source link

cookies #74

Open Druidblack opened 3 weeks ago

Druidblack commented 3 weeks ago

Can you make an example of how to use cookies in the program? Do I need to specify the path to the cookie in the settings? The txt file format?

fe80Grau commented 3 weeks ago

Cookies are only used to play age-restricted videos in the best quality. If not set, the video will be played in SD. You can find yt-dlp documentation on cookies here: https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp

skijbal commented 3 weeks ago

Is there a way to pass a cookies.txt file?

fe80Grau commented 3 weeks ago

you can extract the cookie file from Youtube with browser extension like https://chrome.google.com/webstore/detail/get-cookiestxt-locally/cclelndahbckbenkjhflpdbgdldlbecc . Check doc https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp