Open Pryodon opened 2 years ago
I got it to work by saving my browser cookies to a file.
https://github.com/ytdl-org/youtube-dl#how-do-i-pass-cookies-to-youtube-dl
It would be super helpful if a link to that help page was in the built-in help because some people don't know about or forget that there is a usage help page available online.
Actually that link only works with JS enabled because of the way GH fakes up documentation pages.
An actual HTML link is https://github.com/ytdl-org/youtube-dl#user-content-how-do-i-pass-cookies-to-youtube-dl.
The help facilities that I'm aware of are the page with that link and (for Unix-like installations) man youtube-dl
(where you can find the FAQ item by searching for "pass cookies").
What online help should be modified?
Youtube-dl could prompt for this code and wait for it to be entered. I did not notice a way to request a prompt.
-2
/--two-factor
option allows you to provide this code, or you will be prompted at the console, but the extractor has to recognise the TFA page, and then be able to submit the code correctly.
The Twitch extractor looks for a <form>
element with id="two-factor-submit"
. Perhaps the site has started to get the TFA code with JS instead of a proper form (but then the whole login procedure is probably broken), or changed the page in some other way.
What online help should be modified?
I'm talking about modifying the built-in help to display a link to the online help.
If you mean the diagnostic message, that's just being passed straight through from the Twitch response, so yt-dl doesn't know what is going to be reported and so can't edit it except to add a general message like "Please read the Fine Manual".
Perhaps what is happening here is that the TFA request is now coming back as an error, and this specific error should be detected and skipped so that the code can be provided as above.
No... I mean when you enter the command:
youtube-dl --help
The output of that command should include a link to the online help page. So people can get more information.
https://github.com/ytdl-org/youtube-dl#user-content-description
And/or adding this link to the section of the help about two factor auth...
https://github.com/ytdl-org/youtube-dl#user-content-how-do-i-pass-cookies-to-youtube-dl
This can, probably should, be achieved with the epilog
parameter to OptionParser
.
Checklist
Verbose log
Description
The video is restricted to subscribers. I subscribe to the channel. I can play the video in my browser.
It appears that Twitch is thinking that Youtube-dl is a new device and is wanting input of a verification code that was sent via email.
Youtube-dl could prompt for this code and wait for it to be entered. I did not notice a way to request a prompt. Even if a code could be entered, is there a way to save the cookies so this process does not need to be repeated?
The video is located in this Twitch account which restricts all VOD's to subscribers only. To gain access to a video, you must subscribe to the channel.
https://www.twitch.tv/msfiiire