Closed ariasuni closed 9 years ago
I can reproduce it, however, I don't have a fix. As a workaround, I've found that it does work if you provide valid login information.
How am I supposed to provide login information to youtube-dl?
youtube-dl -u username -p password http://www.nicovideo.jp/watch/sm18468312
Alternatively, you can use .netrc
in order not to pass it all the time.
I searched for «login» and I didn’t find anything in the man page, so it’s my fault.
But it seems the netrc feature is not documented (How should I format the file?! Why youtube-dl ignore it even with -n
or --netrc
flag?), but I finally figured out that I need to use single quotes so that my username and password are not interpreted by the shell.
There’s a valid nicovideo account in the source code, but I don’t know how to use it.
Yes, the --netrc
flag was indeed ignored in case of niconico. It's should be fixed in version 2014.10.12 and newer.
Example contents of .netrc
file to use with niconico:
machine niconico
login you@example.com
password your_password
Just change the email and password to those of your account. More information on the .netrc file.
We can't stop you from using the credentials found in the source code, however, I am not sure if this is encouraged (@phihag, what do think?).
Thank you very much.
We can't stop you from using the credentials found in the source code, however, I am not sure if this is encouraged (@phihag, what do think?).
Why are there here in the first place? I wondered if they can be used by using a particular flag, but it doesn’t seem so.
The credentials in the source code are just for testing the login code.
While we cannot hinder you to use them, we do not support or condone their usage for anything but testing the niconico's extractor login code. Experience shows that the password may be changed or the account deleted at some time.
You can now log in to niconico both with command-line options as well as netrc in youtube-dl 2014.10.12. Refer to our FAQ on how to update.
I've also added the keyword login to the --help
output (our documentation will be generated from that in the next release).
Here it is: