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

Unable to download video with signature of size 84 #1555

Closed
rbrito opened this issue Oct 4, 2013 · 3 comments
Closed

Unable to download video with signature of size 84 #1555

rbrito opened this issue Oct 4, 2013 · 3 comments

Comments

@rbrito
Copy link
Contributor

@rbrito rbrito commented Oct 4, 2013

Hi.

I received a bug report in Debian that there were some problems downloading a video with signature length of 84. I uploaded a new version to the Debian repository and I still see it with version 2013.10.01:

youtube-dl --verbose -c -f 22 LrUvu1mlWco
[debug] System config: []
[debug] User config: ['--title', '--restrict-filenames']
[debug] Command-line args: ['--verbose', '-c', '-f', '22', 'LrUvu1mlWco']
[debug] youtube-dl version 2013.10.01
[debug] Python version 2.7.5+ - Linux-3.10-3-amd64-x86_64-with-debian-jessie-sid
[debug] Proxy map: {}
[youtube] Setting language
[youtube] LrUvu1mlWco: Downloading video webpage
[youtube] LrUvu1mlWco: Downloading video info webpage
[youtube] LrUvu1mlWco: Extracting video information
[youtube] encrypted signature length 84 (40.43), itag 46, html5 player vflP7iCEe
[youtube] LrUvu1mlWco: Downloading js player vflP7iCEe
[youtube] encrypted signature length 84 (40.43), itag 45, html5 player vflP7iCEe
[youtube] encrypted signature length 84 (40.43), itag 22, html5 player vflP7iCEe
[youtube] encrypted signature length 84 (40.43), itag 44, html5 player vflP7iCEe
[youtube] encrypted signature length 84 (40.43), itag 43, html5 player vflP7iCEe
[youtube] encrypted signature length 84 (40.43), itag 18, html5 player vflP7iCEe
[youtube] encrypted signature length 84 (40.43), itag 5, html5 player vflP7iCEe
[youtube] encrypted signature length 84 (40.43), itag 36, html5 player vflP7iCEe
[youtube] encrypted signature length 84 (40.43), itag 17, html5 player vflP7iCEe
ERROR: unable to download video data: HTTP Error 403: Forbidden
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 563, in process_info
    success = self.fd._do_download(filename, info_dict)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/FileDownloader.py", line 456, in _do_download
    data = compat_urllib_request.urlopen(request)
  File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 410, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 448, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden

Despite this, every other video that I tried so far has worked for me.

Thanks,

Rogério.

@rbrito
Copy link
Contributor Author

@rbrito rbrito commented Oct 4, 2013

Just as some extra information, there's something that I had not yet seen: when I successively try to download the video above, the signature lengths vary a lot (e.g., some times, it has length 81, other times, 82, then 87, then my reported 84 and so on). Is this usual?

@cujo30227
Copy link

@cujo30227 cujo30227 commented Oct 4, 2013

Seems like you have an old version, please update with option -U.

Also, I'm interested to see the decryption key (keeping that as fall back option). After updating, can you run with option --youtube-print-sig-code and post the key?

Thanks

Op 4 okt. 2013 om 14:06 heeft Rogério Brito notifications@github.com het volgende geschreven:

Hi.

I received a bug report in Debian that there were some problems downloading a video with signature length of 84. I uploaded a new version to the Debian repository and I still see it with version 2013.10.01:

youtube-dl --verbose -c -f 22 LrUvu1mlWco
[debug] System config: []
[debug] User config: ['--title', '--restrict-filenames']
[debug] Command-line args: ['--verbose', '-c', '-f', '22', 'LrUvu1mlWco']
[debug] youtube-dl version 2013.10.01
[debug] Python version 2.7.5+ - Linux-3.10-3-amd64-x86_64-with-debian-jessie-sid
[debug] Proxy map: {}
[youtube] Setting language
[youtube] LrUvu1mlWco: Downloading video webpage
[youtube] LrUvu1mlWco: Downloading video info webpage
[youtube] LrUvu1mlWco: Extracting video information
[youtube] encrypted signature length 84 (40.43), itag 46, html5 player vflP7iCEe
[youtube] LrUvu1mlWco: Downloading js player vflP7iCEe
[youtube] encrypted signature length 84 (40.43), itag 45, html5 player vflP7iCEe
[youtube] encrypted signature length 84 (40.43), itag 22, html5 player vflP7iCEe
[youtube] encrypted signature length 84 (40.43), itag 44, html5 player vflP7iCEe
[youtube] encrypted signature length 84 (40.43), itag 43, html5 player vflP7iCEe
[youtube] encrypted signature length 84 (40.43), itag 18, html5 player vflP7iCEe
[youtube] encrypted signature length 84 (40.43), itag 5, html5 player vflP7iCEe
[youtube] encrypted signature length 84 (40.43), itag 36, html5 player vflP7iCEe
[youtube] encrypted signature length 84 (40.43), itag 17, html5 player vflP7iCEe
ERROR: unable to download video data: HTTP Error 403: Forbidden
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 563, in process_info
success = self.fd._do_download(filename, info_dict)
File "/usr/lib/python2.7/dist-packages/youtube_dl/FileDownloader.py", line 456, in _do_download
data = compat_urllib_request.urlopen(request)
File "/usr/lib/python2.7/urllib2.py", line 127, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 410, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 523, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 448, in error
return self._call_chain(_args)
File "/usr/lib/python2.7/urllib2.py", line 382, in _call_chain
result = func(_args)
File "/usr/lib/python2.7/urllib2.py", line 531, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden
Despite this, every other video that I tried so far has worked for me.

Thanks,

Rogério.


Reply to this email directly or view it on GitHub.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Oct 4, 2013

It works with versions from 2013.10.01.1 and higher, in 2013.10.01 we introduced a bug (f10503d), which was fixed later in 44d4665.
I'm closing this, but if the problem persists, just comment and we will reopen it.
Thanks for the report.

About the signature length, it's completely normal, they use different lengths at the same time.

@jaimeMF jaimeMF closed this Oct 4, 2013
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.