ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.43k stars 10.04k forks source link

AttributeError: 'NoneType' object has no attribute 'group' #3684

Closed devurandom closed 10 years ago

devurandom commented 10 years ago

Using the latest version installed via pip:

$ youtube-dl --verbose http://www.youtube.com/watch?v=38psl7u2yvQ
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.youtube.com/watch?v=38psl7u2yvQ']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.07.11.3
[debug] Python version 3.4.0 - Linux-3.13.0-35-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] Proxy map: {}
[youtube] Setting language
[youtube] 38psl7u2yvQ: Downloading webpage
[youtube] 38psl7u2yvQ: Downloading video info webpage
[youtube] 38psl7u2yvQ: Extracting video information
[youtube] 38psl7u2yvQ: Encrypted signatures detected.
[youtube] encrypted signature length 85 (40.44), itag 22, html5 player en_US-vfllxLx6Z\/html5player
ERROR: Automatic signature extraction failed: Traceback (most recent call last):
  File "/home/USER/.local/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 877, in _decrypt_signature
    video_id, player_url, len(s)
  File "/home/USER/.local/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 352, in _extract_signature_function
    player_type = id_m.group('ext')
AttributeError: 'NoneType' object has no attribute 'group'
; 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 "/home/USER/.local/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 877, in _decrypt_signature
    video_id, player_url, len(s)
  File "/home/USER/.local/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 352, in _extract_signature_function
    player_type = id_m.group('ext')
AttributeError: 'NoneType' object has no attribute 'group'
Traceback (most recent call last):
  File "/home/USER/.local/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 877, in _decrypt_signature
    video_id, player_url, len(s)
  File "/home/USER/.local/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 352, in _extract_signature_function
    player_type = id_m.group('ext')
AttributeError: 'NoneType' object has no attribute 'group'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/USER/.local/lib/python3.4/site-packages/youtube_dl/YoutubeDL.py", line 516, in extract_info
    ie_result = ie.extract(url)
  File "/home/USER/.local/lib/python3.4/site-packages/youtube_dl/extractor/common.py", line 168, in extract
    return self._real_extract(url)
  File "/home/USER/.local/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 1249, in _real_extract
    encrypted_sig, video_id, player_url, age_gate)
  File "/home/USER/.local/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 887, in _decrypt_signature
    u'Automatic signature extraction failed: ' + tb, cause=e)
youtube_dl.utils.ExtractorError: Automatic signature extraction failed: Traceback (most recent call last):
  File "/home/USER/.local/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 877, in _decrypt_signature
    video_id, player_url, len(s)
  File "/home/USER/.local/lib/python3.4/site-packages/youtube_dl/extractor/youtube.py", line 352, in _extract_signature_function
    player_type = id_m.group('ext')
AttributeError: 'NoneType' object has no attribute 'group'
; 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.
devurandom commented 10 years ago

Forgot --upgrade when upgrading via pip. Issue solved in current version.