Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
401 Unauthorized on Discovery and Food Network #22922
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
|
@tv21 you're issue is different than the one reported here and it's related only to python 2. @Demasterpl most likely the cookies you have exported are incomplete or expired. |
|
@remitamine You are correct and thank you! Forcing the use of Python 3, along with a cookies.txt file, was what was needed for my issue (but unfortunately not the issue here). |
Checklist
Verbose log
Description
I just setup youtube-dl within the past hour so I could download videos from the Food Network, so my setup is pretty fresh.
I run the following command:
youtube-dl --config-location "/Users/Joe/youtubedl/joe-youtube-dl.conf" https://watch.foodnetwork.com/tv-shows/haunted-gingerbread-showdown/full-episodes/calling-all-ghostbusters
and I get a 401: Unauthorized error.
I am saving the cookie file using Firefox 70.0 on my Mac OS 10.15.1 using the cookies.txt extension.
I did notice in the logs that "discovery" was mentioned and I realize that the interface is identical between the two websites. Also, I came across Issue #21810 that had the same Unauthorized error for Discovery that never went answered (#21810).
My config file has the following flags:
(pound to comment) Save all videos under Movies directory in your home directory
-o '/Users/Joe/youtubedl/%(title)s'
(pound to comment) Download best mp4 format available or any other best if no mp4 available
-f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best"
(pound to comment) Cookie location
--cookies "/Users/Joe/youtubedl/cookies.txt"
I selected my cable provider on Food Network's Webpage UI and I was able to start watching without entering any credentials. Assuming I already had the valid cookie, I exported them all to the file I reference in my config file. Is this an actual, old bug or is there someway I can authenticate myself?