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

Error downloading YouTube playlist: KeyError: 'sig' #2653

Closed
joshtriplett opened this issue Mar 29, 2014 · 5 comments
Closed

Error downloading YouTube playlist: KeyError: 'sig' #2653

joshtriplett opened this issue Mar 29, 2014 · 5 comments

Comments

@joshtriplett
Copy link

@joshtriplett joshtriplett commented Mar 29, 2014

$ ./youtube-dl --playlist-end=7 'https://www.youtube.com/playlist?list=PLB600313D4723E21F'
[youtube] PL B600313D4723E21F: Downloading page #1
[youtube] PL B600313D4723E21F: Found 18 videos, downloading 7
[youtube] Setting language
[youtube] pVORGr2fDk8: Downloading video webpage
[youtube] pVORGr2fDk8: Downloading video info webpage
[youtube] pVORGr2fDk8: Extracting video information
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "./youtube-dl/__main__.py", line 17, in <module>
  File "./youtube-dl/youtube_dl/__init__.py", line 486, in main
  File "./youtube-dl/youtube_dl/__init__.py", line 470, in _real_main
  File "./youtube-dl/youtube_dl/FileDownloader.py", line 498, in download
  File "./youtube-dl/youtube_dl/InfoExtractors.py", line 91, in extract
  File "./youtube-dl/youtube_dl/InfoExtractors.py", line 1683, in _real_extract
  File "./youtube-dl/youtube_dl/FileDownloader.py", line 498, in download
  File "./youtube-dl/youtube_dl/InfoExtractors.py", line 91, in extract
  File "./youtube-dl/youtube_dl/InfoExtractors.py", line 479, in _real_extract
  File "./youtube-dl/youtube_dl/InfoExtractors.py", line 479, in <genexpr>
KeyError: 'sig'
@phihag
Copy link
Contributor

@phihag phihag commented Mar 29, 2014

It looks like you are running a severely outdated version of youtube-dl. Type ./youtube-dl -U to update. If the problem persists, please post the full output you get when running youtube-dl with the --verbose switch.

@phihag phihag closed this Mar 29, 2014
@joshtriplett
Copy link
Author

@joshtriplett joshtriplett commented Mar 29, 2014

Here's the output of --verbose:

[debug] System config: []
[debug] User config: ['--title', '--prefer-free-formats']
[debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?list=PLB600313D4723E21F']
[debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.02.17
[debug] Python version 2.7.6 - Linux-3.13-1-amd64-x86_64-with-debian-jessie-sid
[debug] Proxy map: {}
[youtube:playlist] PLB600313D4723E21F: Downloading page #1
WARNING: [youtube:playlist] PLB600313D4723E21F: Playlist page is missing OpenGraph title, falling back ...
ERROR: Unable to extract title; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1511, in _real_extract
    playlist_title = self._og_search_title(page)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 428, in _og_search_title
    return self._og_search_property('title', html, **kargs)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 416, in _og_search_property
    escaped = self._search_regex(self._og_regexes(prop), html, name, flags=re.DOTALL, **kargs)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 356, in _search_regex
    raise RegexNotFoundError(u'Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract OpenGraph title; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 493, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 158, in extract
    return self._real_extract(url)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/youtube.py", line 1517, in _real_extract
    r'<h1 class="pl-header-title">(.*?)</h1>', page, u'title')
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 366, in _html_search_regex
    res = self._search_regex(pattern, string, name, default, fatal, flags)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 356, in _search_regex
    raise RegexNotFoundError(u'Unable to extract %s' % _name)
RegexNotFoundError: Unable to extract title; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
@phihag
Copy link
Contributor

@phihag phihag commented Mar 29, 2014

Huh? That's a completely different error! Can you reproduce the original one? Did you update in between these posts? In any case, the new version is still out of date, it should be 2014.03.29 or newer. Can you post the output you get with that?

@joshtriplett
Copy link
Author

@joshtriplett joshtriplett commented Mar 29, 2014

Apparently https://github.com/downloads/rg3/youtube-dl/youtube-dl no longer contains an up-to-date version of youtube-dl; it used to. I've been using that as the address to download a new version from when the packaged version stops working, until it gets updated.

@phihag
Copy link
Contributor

@phihag phihag commented Mar 30, 2014

That file has been deprecated and is only there for legacy installations since 2012 (basically, the growth of features necessitated a split into multiple files, and the git repository is not suitable for our large binary builds).

Please follow our official downloading instructions to install youtube-dl. The new and permanently maintainable URL is https://yt-dl.org/latest/youtube-dl .

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
2 participants
You can’t perform that action at this time.