Kethsar / ytarchive

Garbage Youtube livestream downloader
MIT License
1.13k stars 91 forks source link

Cookies.txt not working for members only stream #121

Closed AndrewGoulding closed 1 year ago

AndrewGoulding commented 1 year ago

When I try to download a members only stream, this happens:

PS D:\ytarchive-master> python ytarchive.py https://www.youtube.com/watch?v=5tCM912RXd4 --cookies cookies.txt No valid qualities selected 20:17:05 WARNING: Playability status: Unplayable. 20:17:05 WARNING: Reason: Join this channel to get access to members-only content like this video and other exclusive perks. 20:17:05 WARNING: Logged in status: False 20:17:05 WARNING: If this is a members only stream, you provided a cookies.txt file, and the above 'logged in' status is not True, please try updating your cookies file. 20:17:05 WARNING: Also check if your cookies file includes '#HttpOnly_' in front of some lines. If it does, delete that part of those lines and try again.

None of the lines in the cookies file contains HttpOnly, and the cookies file works with yt-dlp. I have tried 3 different cookies files from 3 different browsers (using the browser extension), and it still doesn't work. Does anyone have any advice?

AndrewGoulding commented 1 year ago

Got it, was making a stupid mistake. Used the command:

python ytarchive.py --cookies "cookies.txt" https://www.youtube.com/watch?v=5tCM912RXd4

Instead and this worked.