Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

youtube-dl not picking up .netrc #26465

Closed
anphetamina opened this issue Aug 28, 2020 · 3 comments
Closed

youtube-dl not picking up .netrc #26465

anphetamina opened this issue Aug 28, 2020 · 3 comments
Labels

Comments

@anphetamina
Copy link

@anphetamina anphetamina commented Aug 28, 2020

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2020.07.28
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar bug reports including closed ones
  • I've read bugs section in FAQ

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.facebook.com/xxxxxxxxxxxxx/videos/4287339688002603']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2020.07.28
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362
[debug] exe versions: ffmpeg 4.0.2, ffprobe 4.0.2
[debug] Proxy map: {}
[facebook] 4287339688002603: Downloading webpage
[facebook] 4287339688002603: Downloading webpage
ERROR: This video is only available for registered users. Use --username and --password or --netrc to provide account credentials.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpq2whuxta\build\youtube_dl\YoutubeDL.py", line 797, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpq2whuxta\build\youtube_dl\extractor\common.py", line 530, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpq2whuxta\build\youtube_dl\extractor\facebook.py", line 484, in _real_extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpq2whuxta\build\youtube_dl\extractor\facebook.py", line 351, in _extract_from_url
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpq2whuxta\build\youtube_dl\extractor\common.py", line 936, in raise_login_required
youtube_dl.utils.ExtractorError: This video is only available for registered users. Use --username and --password or --netrc to provide account credentials.

Description

I've put a config.txt file inside the same folder of the youtube-dl executable that contains

--netrc

In the same folder I've put a .netrc file that contains

machine facebook login "my_address" password "password_that_contains_special_character"

Adding a HOME system variable pointing to the folder in which the three files are placed doesn't help

@merval
Copy link

@merval merval commented Aug 30, 2020

What's interesting is, my facebook let me know I had logged in from a device that was unrecognized. so it's authenticating but not working somehow.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Aug 31, 2020

Read FAQ on where configuration file is supposed to be located.

@dstftw dstftw closed this Aug 31, 2020
@dstftw dstftw added the invalid label Aug 31, 2020
@anphetamina
Copy link
Author

@anphetamina anphetamina commented Aug 31, 2020

What's interesting is, my facebook let me know I had logged in from a device that was unrecognized. so it's authenticating but not working somehow.

this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.