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
225 stars 21 forks source link

cookies #74

Open Druidblack opened 2 months ago

Druidblack commented 2 months 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 2 months 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 2 months ago

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

fe80Grau commented 2 months 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