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

PBS download fails with http error 400 and a cookies file to enable HD #5020

Closed
crystalclaw opened this issue Feb 21, 2015 · 4 comments
Closed

PBS download fails with http error 400 and a cookies file to enable HD #5020

crystalclaw opened this issue Feb 21, 2015 · 4 comments

Comments

@crystalclaw
Copy link

@crystalclaw crystalclaw commented Feb 21, 2015

I tried to include the cookies for a nova video so that HD is enabled, but it gives me an error 400. works fine without cookies, but is really low quality.
command: youtube-dl -F http://video.pbs.org/video/2163057527/ --cookies /Users/iandrobney/Desktop/cookies.txt
cookies were exported from firefox with a random cookie exporting plugin.
output:

Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/Users/iandrobney/programs/bin/youtube-dl/__main__.py", line 19, in <module>
  File "/Users/iandrobney/programs/bin/youtube-dl/youtube_dl/__init__.py", line 390, in main
  File "/Users/iandrobney/programs/bin/youtube-dl/youtube_dl/__init__.py", line 357, in _real_main
  File "/Users/iandrobney/programs/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 323, in __init__
  File "/Users/iandrobney/programs/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1669, in _setup_opener
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/cookielib.py", line 1763, in load
    self._really_load(f, filename, ignore_discard, ignore_expires)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_MozillaCookieJar.py", line 55, in _really_load
    filename)
cookielib.LoadError: '/Users/iandrobney/Desktop/cookies.txt' does not look like a Netscape format cookies file
000009:TEMPVIDS iandrobney$ youtube-dl -F http://video.pbs.org/video/2163057527/ --cookies /Users/iandrobney/Desktop/cookies.txt
[PBS] 2163057527: Downloading JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 400: Bad Request (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 31, 2015

I don't have access to the video, but the cookies issue is already reported in #4539. If it works now, please tell us so we can close this issue.

@crystalclaw
Copy link
Author

@crystalclaw crystalclaw commented Jul 31, 2015

I no longer have access to the computer I did this on (school laptop), so I'll have to set it up again on my new home laptop. I'll test it tonight if I can, and get back to you so this issue can be closed.

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Jul 31, 2015

i'm sorry,i didn't notice that the problem is about the cookies.
i'm just looking for old issues that now is working to keep only the issues with real problems.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 31, 2016

Check newline format in your cookies files to correspond your OS.

@dstftw dstftw closed this Jan 31, 2016
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
4 participants
You can’t perform that action at this time.