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 #1247

Closed
TOMBSTONEV2 opened this issue Aug 15, 2013 · 3 comments
Closed

Unable to Download Video #1247

TOMBSTONEV2 opened this issue Aug 15, 2013 · 3 comments

Comments

@TOMBSTONEV2
Copy link

@TOMBSTONEV2 TOMBSTONEV2 commented Aug 15, 2013

justin@FUSION:~$ youtube-dl https://www.youtube.com/watch?v=xdeFB7I0YH4 --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['https://www.youtube.com/watch?v=xdeFB7I0YH4', '--verbose']
[debug] youtube-dl version 2013.08.14
[debug] Python version 2.7.3 - Linux-3.2.0-4-686-pae-i686-with-debian-7.1
[debug] Proxy map: {}
[youtube] Setting language
[youtube] xdeFB7I0YH4: Downloading video webpage
[youtube] xdeFB7I0YH4: Downloading video info webpage
[youtube] xdeFB7I0YH4: Extracting video information
[youtube] xdeFB7I0YH4: Encrypted signatures detected.
[youtube] encrypted signature length 87 (46.40), itag 46, html5 player vflkn6DAl
[youtube] encrypted signature length 87 (46.40), itag 37, html5 player vflkn6DAl
[youtube] encrypted signature length 87 (46.40), itag 45, html5 player vflkn6DAl
[youtube] encrypted signature length 87 (46.40), itag 22, html5 player vflkn6DAl
[youtube] encrypted signature length 87 (46.40), itag 44, html5 player vflkn6DAl
[youtube] encrypted signature length 87 (46.40), itag 35, html5 player vflkn6DAl
[youtube] encrypted signature length 87 (46.40), itag 43, html5 player vflkn6DAl
[youtube] encrypted signature length 87 (46.40), itag 34, html5 player vflkn6DAl
[youtube] encrypted signature length 87 (46.40), itag 18, html5 player vflkn6DAl
[youtube] encrypted signature length 87 (46.40), itag 5, html5 player vflkn6DAl
[youtube] encrypted signature length 87 (46.40), itag 36, html5 player vflkn6DAl
[youtube] encrypted signature length 87 (46.40), itag 17, html5 player vflkn6DAl
ERROR: unable to download video
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 573, in download
videos = self.extract_info(url)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 327, in extract_info
return self.process_ie_result(ie_result, download=download)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 410, in process_ie_result
for r in ie_result['entries']
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 357, in process_ie_result
self.process_info(ie_result)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 550, in process_info
raise UnavailableVideoError(err)
UnavailableVideoError: HTTP Error 403: Forbidden

@awojnowski
Copy link
Contributor

@awojnowski awojnowski commented Aug 15, 2013

Updated signature function:

function lj(a) {
    a = a.split("");
    a = mj(a, 39);
    a = a.slice(2);
    a = mj(a, 57);
    a = a.slice(2);
    a = mj(a, 23);
    a = mj(a, 35);
    a = a.slice(2);
    return a.join("")
}

function mj(a, b) {
    var c = a[0];
    a[0] = a[b % a.length];
    a[b] = c;
    return a
};
@patrickslin
Copy link
Contributor

@patrickslin patrickslin commented Aug 15, 2013

new sig len 87 algo:

1121311115F8E878F14D005AE6F3AA2BC174C7924C69FB.9E16C4F2256D35202151C3A70180A02D0E18113D
1115F8E878F14D005AE6F3AA2BC174C7934C69FB.9E16C4F2256D25202151C3A70180A02D0E18113D

57573757BD0DE5A6262EA1937E79ABDE2760EAB5AAAB4D.26AA649DA7F036AE2919921CDFC48231E44294AB
57BD0DE5A6262EA1937E73ABDE2760EAB9AAAB4D.26AA649DA7F056AE2919921CDFC48231E44294AB

python:
s[6:27] + s[4] + s[28:39] + s[27] + s[40:59] + s[2] + s[60:]

javascript:
s.slice(6, 27).join('') + s[4] + s.slice(28, 39).join('') + s[27] + s.slice(40, 59).join('') + s[2] + s.slice(60).join('')

@phihag phihag closed this in 3a72566 Aug 15, 2013
phihag added a commit that referenced this issue Aug 15, 2013
Unable to Download Video (fixes #1247)
@phihag
Copy link
Contributor

@phihag phihag commented Aug 15, 2013

Thank you for the report. Type

sudo youtube-dl -U

to update.

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