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

Twitch extractor fails when URI contains hash fragment #6294

Closed
nagisa opened this issue Jul 19, 2015 · 0 comments
Closed

Twitch extractor fails when URI contains hash fragment #6294

nagisa opened this issue Jul 19, 2015 · 0 comments

Comments

@nagisa
Copy link

@nagisa nagisa commented Jul 19, 2015

$ youtube-dl 'http://www.twitch.tv/miracle_doto#profile-0' --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.twitch.tv/miracle_doto#profile-0', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.07.07
[debug] Python version 3.4.3 - Linux-4.0.7-2-ARCH-x86_64-with-arch-Arch-Linux
[debug] exe versions: ffmpeg 2.7.1, ffprobe 2.7.1, rtmpdump 2.4
[debug] Proxy map: {}
[twitch:stream] miracle_doto#profile-0: Downloading stream JSON
[twitch:stream] miracle_doto#profile-0: Downloading channel access token
ERROR: An extractor error has occured. (caused by KeyError('sig',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/common.py", line 273, in extract
    return self._real_extract(url)
  File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/twitch.py", line 362, in _real_extract
    'sig': access_token['sig'].encode('utf-8'),
KeyError: 'sig'
Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/common.py", line 273, in extract
    return self._real_extract(url)
  File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/twitch.py", line 362, in _real_extract
    'sig': access_token['sig'].encode('utf-8'),
KeyError: 'sig'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 654, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python3.4/site-packages/youtube_dl/extractor/common.py", line 279, in extract
    raise ExtractorError('An extractor error has occured.', cause=e)
youtube_dl.utils.ExtractorError: An extractor error has occured. (caused by KeyError('sig',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

It works fine if hash fragment is removed. It should work in either case.

@dstftw dstftw closed this in faa1f83 Jul 19, 2015
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
1 participant
You can’t perform that action at this time.