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

Yet another signature change (YouTube) #1017

Closed
strex opened this issue Jul 9, 2013 · 15 comments
Closed

Yet another signature change (YouTube) #1017

strex opened this issue Jul 9, 2013 · 15 comments

Comments

@strex
Copy link

@strex strex commented Jul 9, 2013

It seems Youtube made some changes again.
The encrypted signature has now a length of 83.
40.42

youtube dl is able to decrypt, but the decrypted signature doesnt work.
(error 403)

[youtube] Setting language
[youtube] pSFyrrhKj1Q: Downloading video webpage
[youtube] pSFyrrhKj1Q: Downloading video info webpage
[youtube] pSFyrrhKj1Q: Extracting video information
[youtube] pSFyrrhKj1Q: Encrypted signatures detected.
ERROR: unable to download video

I get this signature for example with this video:
http://www.youtube.com/watch?v=pSFyrrhKj1Q

edit:
[debug] youtube-dl version 2013.07.08.1
[debug] Python version 2.7.3 - Darwin-12.4.0-x86_64-i386-64bit
[debug] Proxy map: {}
[youtube] Setting language
[youtube] pSFyrrhKj1Q: Downloading video webpage
[youtube] pSFyrrhKj1Q: Downloading video info webpage
[youtube] pSFyrrhKj1Q: Extracting video information
[youtube] pSFyrrhKj1Q: Encrypted signatures detected.
[youtube] encrypted signature length 83 (40.42), itag 44, html5 player vfl26ng3K
[youtube] encrypted signature length 83 (40.42), itag 35, html5 player vfl26ng3K
[youtube] encrypted signature length 83 (40.42), itag 43, html5 player vfl26ng3K
[youtube] encrypted signature length 83 (40.42), itag 34, html5 player vfl26ng3K
[youtube] encrypted signature length 83 (40.42), itag 18, html5 player vfl26ng3K
[youtube] encrypted signature length 83 (40.42), itag 5, html5 player vfl26ng3K
[youtube] encrypted signature length 83 (40.42), itag 36, html5 player vfl26ng3K
[youtube] encrypted signature length 83 (40.42), itag 17, html5 player vfl26ng3K
ERROR: unable to download video
Traceback (most recent call last):
File "/usr/local/sbin/youtube-dl/youtube_dl/YoutubeDL.py", line 574, in download
videos = self.extract_info(url)
File "/usr/local/sbin/youtube-dl/youtube_dl/YoutubeDL.py", line 327, in extract_info
return self.process_ie_result(ie_result, download=download)
File "/usr/local/sbin/youtube-dl/youtube_dl/YoutubeDL.py", line 409, in process_ie_result
for r in ie_result['entries']
File "/usr/local/sbin/youtube-dl/youtube_dl/YoutubeDL.py", line 356, in process_ie_result
self.process_info(ie_result)
File "/usr/local/sbin/youtube-dl/youtube_dl/YoutubeDL.py", line 551, in process_info
raise UnavailableVideoError()
UnavailableVideoError

@ghost
Copy link

@ghost ghost commented Jul 10, 2013

I'm seeing the same issues. Initially I thought it was VEVO specific but I've found a few non-VEVO videos that are failing too.

@jhb50
Copy link

@jhb50 jhb50 commented Jul 10, 2013

Not only changed algorithm but also have 81 key.

C:\Users\John>"D:\My Program Downloads\Base Install Streaming\youtube-dl\youtube
-dl.exe" https://www.youtube.com/watch?v=7jtMbtq8wT0
[youtube] Setting language
[youtube] 7jtMbtq8wT0: Downloading video webpage
[youtube] 7jtMbtq8wT0: Downloading video info webpage
[youtube] 7jtMbtq8wT0: Extracting video information
[youtube] 7jtMbtq8wT0: Encrypted signatures detected.
ERROR: Unable to decrypt signature, key length 81 not supported; retrying might
work; please report this issue on http://yt-dl.org/bug
followed by
C:\Users\John>"D:\My Program Downloads\Base Install Streaming\youtube-dl\youtube
-dl.exe" https://www.youtube.com/watch?v=7jtMbtq8wT0
[youtube] Setting language
[youtube] 7jtMbtq8wT0: Downloading video webpage
[youtube] 7jtMbtq8wT0: Downloading video info webpage
[youtube] 7jtMbtq8wT0: Extracting video information
[youtube] 7jtMbtq8wT0: Encrypted signatures detected.
ERROR: unable to download video
followed by
C:\Users\John>"D:\My Program Downloads\Base Install Streaming\youtube-dl\youtube
-dl.exe" https://www.youtube.com/watch?v=7jtMbtq8wT0
[youtube] Setting language
[youtube] 7jtMbtq8wT0: Downloading video webpage
[youtube] 7jtMbtq8wT0: Downloading video info webpage
[youtube] 7jtMbtq8wT0: Extracting video information
[youtube] 7jtMbtq8wT0: Encrypted signatures detected.
ERROR: Unable to decrypt signature, key length 81 not supported; retrying might
work; please report this issue on http://yt-dl.org/bug

@jaimeMF jaimeMF closed this in c93898d Jul 10, 2013
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 10, 2013

Thanks for reporting! the fix will be available in the next release.
@jhb50 I cannot reproduce it, if it fails open a new issue and post the output when running with the --verbose option, also make sure you have the lates version of youtube-dl.

@jhb50
Copy link

@jhb50 jhb50 commented Jul 10, 2013

Thanks. Latest version fixed it.

@strex
Copy link
Author

@strex strex commented Jul 11, 2013

It seems they changed the encrypted 83 chars signature it again.
The encrypted signature is now 42.40, before it was 40.42.

youtube-dl --verbose http://www.youtube.com/watch?v=oxqnFJ3lp5k
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.youtube.com/watch?v=oxqnFJ3lp5k']
[debug] youtube-dl version 2013.07.10
[debug] Python version 2.7.3 - Darwin-12.4.0-x86_64-i386-64bit
[youtube] Setting language
[youtube] oxqnFJ3lp5k: Downloading video webpage
[youtube] oxqnFJ3lp5k: Downloading video info webpage
[youtube] oxqnFJ3lp5k: Extracting video information
[youtube] oxqnFJ3lp5k: Encrypted signatures detected.
[youtube] encrypted signature length 83 (42.40), itag 46, html5 player vflcaqGO8
[youtube] encrypted signature length 83 (42.40), itag 37, html5 player vflcaqGO8
[youtube] encrypted signature length 83 (42.40), itag 45, html5 player vflcaqGO8
[youtube] encrypted signature length 83 (42.40), itag 22, html5 player vflcaqGO8
[youtube] encrypted signature length 83 (42.40), itag 44, html5 player vflcaqGO8
[youtube] encrypted signature length 83 (42.40), itag 35, html5 player vflcaqGO8
[youtube] encrypted signature length 83 (42.40), itag 43, html5 player vflcaqGO8
[youtube] encrypted signature length 83 (42.40), itag 34, html5 player vflcaqGO8
[youtube] encrypted signature length 83 (42.40), itag 18, html5 player vflcaqGO8
[youtube] encrypted signature length 83 (42.40), itag 5, html5 player vflcaqGO8
[youtube] encrypted signature length 83 (42.40), itag 36, html5 player vflcaqGO8
[youtube] encrypted signature length 83 (42.40), itag 17, html5 player vflcaqGO8
ERROR: unable to download video
Traceback (most recent call last):
File "/usr/local/sbin/youtube-dl/youtube_dl/YoutubeDL.py", line 574, in download
videos = self.extract_info(url)
File "/usr/local/sbin/youtube-dl/youtube_dl/YoutubeDL.py", line 327, in extract_info
return self.process_ie_result(ie_result, download=download)
File "/usr/local/sbin/youtube-dl/youtube_dl/YoutubeDL.py", line 409, in process_ie_result
for r in ie_result['entries']
File "/usr/local/sbin/youtube-dl/youtube_dl/YoutubeDL.py", line 356, in process_ie_result
self.process_info(ie_result)
File "/usr/local/sbin/youtube-dl/youtube_dl/YoutubeDL.py", line 551, in process_info
raise UnavailableVideoError()
UnavailableVideoError

@ghost
Copy link

@ghost ghost commented Jul 11, 2013

Yup... should this issue be re-opened or moved to a new thread?

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 11, 2013

@strex and @jasonrwalters fixed in 85347e1
If you notice a new change in Youtube, feel free to open a new issue, just try to make sure it always fails (not just once) and check if there's an open issue for that.
Once more, thanks for the report!

@ghost
Copy link

@ghost ghost commented Jul 11, 2013

@jaimeMF i added my error log to a new thread #1026

@k00m
Copy link

@k00m k00m commented Jul 19, 2013

With the version 2013.07.18
This one do the encryption error, http://www.youtube.com/watch?feature=player_detailpage&v=Z81hsLIY1sQ

@davedwards
Copy link

@davedwards davedwards commented Sep 6, 2013

Are encrypted signatures still not supported with version 2013.09.05?

Here's an an example URL and output with -v: http://pastebin.com/N9hSaWUg

Any advice is appreciated.

@phihag
Copy link
Contributor

@phihag phihag commented Sep 6, 2013

@davedwards It changed again, fixed in 2013.09.06. Type sudo youtube-dl -U to update.

@voldyman
Copy link

@voldyman voldyman commented Sep 11, 2013

i am using version 2013.09.10 still get the error
here is my output with --verbose http://pastebin.com/aeMKHuRM

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 11, 2013

@voldyman you need to update again, it woks with 2013.09.11

@magnotorres
Copy link

@magnotorres magnotorres commented Sep 14, 2013

It happened with this video too: http://www.youtube.com/watch?v=cUhPA5qIxDQ
[youtube] cUhPA5qIxDQ: Encrypted signatures detected.
[youtube] encrypted signature length 82 (40.41), itag 46, html5 player vflGNjMhJ

See the entire output here:
http://pastebin.com/s4Wi7TGA

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 15, 2013

@magnotorres See #1416 for more info about the problem and #1420 (comment), for the reason why there isn't a new version yet.

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