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

Youtube: New algo for length 85 (was: Couldn't download YouTube VEVO videos) #1080

Closed
harry0703 opened this issue Jul 19, 2013 · 13 comments
Closed

Comments

@harry0703
Copy link

@harry0703 harry0703 commented Jul 19, 2013

http://www.youtube.com/watch?v=yyDUC1LUXSU

http://www.youtube.com/watch?v=n-D1EB74Ckg

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['http://www.youtube.com/watch?v=RnpyRe_7jZA', '-v']
[debug] youtube-dl version 2013.07.17.1
[debug] Python version 2.7.3 - Windows-7-6.1.7600-SP1
[debug] Proxy map: {}
[youtube] Setting language
[youtube] RnpyRe_7jZA: Downloading video webpage
[youtube] RnpyRe_7jZA: Downloading video info webpage
[youtube] RnpyRe_7jZA: Extracting video information
[youtube] RnpyRe_7jZA: Encrypted signatures detected.
[youtube] encrypted signature length 85 (42.42), itag 46, html5 player vflSAFCP9

[youtube] encrypted signature length 85 (42.42), itag 37, html5 player vflSAFCP9

[youtube] encrypted signature length 85 (42.42), itag 45, html5 player vflSAFCP9

[youtube] encrypted signature length 85 (42.42), itag 22, html5 player vflSAFCP9

[youtube] encrypted signature length 85 (42.42), itag 44, html5 player vflSAFCP9

[youtube] encrypted signature length 85 (42.42), itag 35, html5 player vflSAFCP9

[youtube] encrypted signature length 85 (42.42), itag 43, html5 player vflSAFCP9

[youtube] encrypted signature length 85 (42.42), itag 34, html5 player vflSAFCP9

[youtube] encrypted signature length 85 (42.42), itag 18, html5 player vflSAFCP9

[youtube] encrypted signature length 85 (42.42), itag 5, html5 player vflSAFCP9
[youtube] encrypted signature length 85 (42.42), itag 36, html5 player vflSAFCP9

[youtube] encrypted signature length 85 (42.42), itag 17, html5 player vflSAFCP9

ERROR: unable to download video
Traceback (most recent call last):
File "youtube_dl\YoutubeDL.pyo", line 573, in download
File "youtube_dl\YoutubeDL.pyo", line 327, in extract_info
File "youtube_dl\YoutubeDL.pyo", line 410, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 357, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 550, in process_info

UnavailableVideoError

@ghost
Copy link

@ghost ghost commented Jul 19, 2013

Experiencing this also...

$ ./youtube-dl --verbose https://www.youtube.com/watch?v=LrUvu1mlWco
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?v=LrUvu1mlWco']
[debug] youtube-dl version 2013.07.17.1
[debug] Python version 2.7.1 - Darwin-11.4.2-x86_64-i386-64bit
[debug] Proxy map: {}
[youtube] Setting language
[youtube] LrUvu1mlWco: Downloading video webpage
[youtube] LrUvu1mlWco: Downloading video info webpage
[youtube] LrUvu1mlWco: Extracting video information
[youtube] LrUvu1mlWco: Encrypted signatures detected.
[youtube] encrypted signature length 85 (42.42), itag 46, html5 player vflSAFCP9
[youtube] encrypted signature length 85 (42.42), itag 37, html5 player vflSAFCP9
[youtube] encrypted signature length 85 (42.42), itag 45, html5 player vflSAFCP9
[youtube] encrypted signature length 85 (42.42), itag 22, html5 player vflSAFCP9
[youtube] encrypted signature length 85 (42.42), itag 44, html5 player vflSAFCP9
[youtube] encrypted signature length 85 (42.42), itag 35, html5 player vflSAFCP9
[youtube] encrypted signature length 85 (42.42), itag 43, html5 player vflSAFCP9
[youtube] encrypted signature length 85 (42.42), itag 34, html5 player vflSAFCP9
[youtube] encrypted signature length 85 (42.42), itag 18, html5 player vflSAFCP9
[youtube] encrypted signature length 85 (42.42), itag 5, html5 player vflSAFCP9
[youtube] encrypted signature length 85 (42.42), itag 36, html5 player vflSAFCP9
[youtube] encrypted signature length 85 (42.42), itag 17, html5 player vflSAFCP9
ERROR: unable to download video
Traceback (most recent call last):
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 573, in download
videos = self.extract_info(url)
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 327, in extract_info
return self.process_ie_result(ie_result, download=download)
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 410, in process_ie_result
for r in ie_result['entries']
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 357, in process_ie_result
self.process_info(ie_result)
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 550, in process_info
raise UnavailableVideoError()
UnavailableVideoError

@patrickslin
Copy link
Contributor

@patrickslin patrickslin commented Jul 19, 2013

#1081 and #1082 are duplicates of this one.

Some Vevo videos are using a sig len of 85. Others are using sig len 92.

Pairs:
6647DCAE49323F0965C97F96B1A80E9F6B88BC6532.8F22CD2D00369A739E05C2A910C3207F9D272EB7B7
47DCAE69323F0965C97A96B1A80E9F6B88BC6532.8F22CD2D00369A739E05C27910C3207F9D272EBF

1146021D4A9FDA31E956174A3D3D92DDA5EE5C3B44.0E78A3D0279FAC0A775295071EBD4F504A42B86565
46021D1A9FDA31E956104A3D3D92DDA5EE5C3B44.0E78A3D0279FAC0A775295571EBD4F504A42B867

New 85 decryption:

python:
s[2:8] + s[0] + s[9:21] + s[65] + s[22:65] + s[84] + s[66:82] + s[21]

javascript:
s.slice(2, 8).join('') + s[0] + s.slice(9, 21).join('') + s[65] + s.slice(22, 65).join('') + s[84] + s.slice(66, 82).join('') + s[21]

@harry0703
Copy link
Author

@harry0703 harry0703 commented Jul 19, 2013

Thank you very much!
Great work!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

@harry0703 harry0703 closed this Jul 19, 2013
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 19, 2013

@patrickslin Do you want to make a pull request or do we add it ourselves?

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 19, 2013

I reopen it since this is not fixed in the git repo

@Baqan
Copy link

@Baqan Baqan commented Jul 19, 2013

@patrickslin Confirmed! Big thank you! I tested your JavaScript code for signature length 85 and now the Vevo videos works!

@jaimeMF @phihag Why there is no commit yet with the change for length 85? Can't you reproduce this scenario in your test? I've confirmed this issue and with the patrickslin new algorithm now its work.

Regards and thank you in advance for your hard work as always.

@andrewjswan
Copy link

@andrewjswan andrewjswan commented Jul 19, 2013

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['ftjEcrrf7r0', '-o', 'U2 - One.avi', '-f', '5', '-v']
[debug] youtube-dl version 2013.07.18
[debug] Python version 2.7.3 - Windows-7-6.1.7601-SP1
[youtube] Setting language
[youtube] ftjEcrrf7r0: Downloading video webpage
[youtube] ftjEcrrf7r0: Downloading video info webpage
[youtube] ftjEcrrf7r0: Extracting video information
[youtube] ftjEcrrf7r0: Encrypted signatures detected.
[youtube] encrypted signature length 85 (42.42), itag 44, html5 player vflSAFCP9
[youtube] encrypted signature length 85 (42.42), itag 35, html5 player vflSAFCP9
[youtube] encrypted signature length 85 (42.42), itag 43, html5 player vflSAFCP9
[youtube] encrypted signature length 85 (42.42), itag 34, html5 player vflSAFCP9
[youtube] encrypted signature length 85 (42.42), itag 18, html5 player vflSAFCP9
[youtube] encrypted signature length 85 (42.42), itag 5, html5 player vflSAFCP9
[youtube] encrypted signature length 85 (42.42), itag 36, html5 player vflSAFCP9
[youtube] encrypted signature length 85 (42.42), itag 17, html5 player vflSAFCP9
ERROR: unable to download video
Traceback (most recent call last):
File "youtube_dl\YoutubeDL.pyo", line 573, in download
File "youtube_dl\YoutubeDL.pyo", line 327, in extract_info
File "youtube_dl\YoutubeDL.pyo", line 410, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 357, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 550, in process_info
UnavailableVideoError

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 19, 2013

@Baqan I've tested it and it works, I'm waiting to see if @patrickslin post a PR since he has obtained the algo.

@SandyAg
Copy link

@SandyAg SandyAg commented Jul 19, 2013

It does not work here in Win 7 32 Bit with Signatures 85 , what do you mean its still working using Java ?
I do use the command line .exe.

youtube-dl -v -f 22 www.youtube.com/watch?v=lgSH3LPfo6g

[debug] youtube-dl version 2013.07.18
[debug] Python version 2.7.3 - Windows-7-6.1.7601-SP1
[debug] Proxy map: {}
[youtube] Setting language
[youtube] lgSH3LPfo6g: Downloading video webpage
[youtube] lgSH3LPfo6g: Downloading video info webpage
[youtube] lgSH3LPfo6g: Extracting video information
[youtube] lgSH3LPfo6g: Encrypted signatures detected.
[youtube] encrypted signature length 85 (42.42), itag 46, html5 player vflSAFCP9

[youtube] encrypted signature length 85 (42.42), itag 37, html5 player vflSAFCP9

[youtube] encrypted signature length 85 (42.42), itag 45, html5 player vflSAFCP9

[youtube] encrypted signature length 85 (42.42), itag 22, html5 player vflSAFCP9

[youtube] encrypted signature length 85 (42.42), itag 44, html5 player vflSAFCP9

[youtube] encrypted signature length 85 (42.42), itag 35, html5 player vflSAFCP9

[youtube] encrypted signature length 85 (42.42), itag 43, html5 player vflSAFCP9

[youtube] encrypted signature length 85 (42.42), itag 34, html5 player vflSAFCP9

[youtube] encrypted signature length 85 (42.42), itag 18, html5 player vflSAFCP9

[youtube] encrypted signature length 85 (42.42), itag 5, html5 player vflSAFCP9
[youtube] encrypted signature length 85 (42.42), itag 36, html5 player vflSAFCP9

[youtube] encrypted signature length 85 (42.42), itag 17, html5 player vflSAFCP9

ERROR: unable to download video
Traceback (most recent call last):
File "youtube_dl\YoutubeDL.pyo", line 573, in download
File "youtube_dl\YoutubeDL.pyo", line 327, in extract_info
File "youtube_dl\YoutubeDL.pyo", line 410, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 357, in process_ie_result
File "youtube_dl\YoutubeDL.pyo", line 550, in process_info

@patrickslin
Copy link
Contributor

@patrickslin patrickslin commented Jul 19, 2013

@jaimeMF You can go ahead and commit, if it is not done. Thanks.

@jaimeMF jaimeMF closed this in a4358cb Jul 19, 2013
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jul 19, 2013

Commited, thanks @patrickslin for your work and all of you for the reports.

@ghost
Copy link

@ghost ghost commented Jul 19, 2013

I don't see a new update when ./youtube-dl -U and I'm still receiving this "encrypted signature length 85..." ... is there a solution? thanks!

@phihag
Copy link
Contributor

@phihag phihag commented Jul 20, 2013

@jasonrwalters Can you open a new issue for that? Please include the output of

sudo youtube-dl -v -U
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
7 participants
You can’t perform that action at this time.