aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2013-08-09 03:42:13 -0700
committerPhilipp Hagemeister <[email protected]>2013-08-09 03:42:13 -0700
commit5b075e27cb64faf7c0e5687b6e03d1969508ad66 (patch)
treee70b09fd47f328aeec2e26e54098fecba096072d
parentd468a09789cc5d931dd1a2e95dcf95a6988c83cb (diff)
parent8a9d86a2a79e78bd7bda941c48fb50dba29d1d66 (diff)
downloadyoutube-dl-5b075e27cb64faf7c0e5687b6e03d1969508ad66.tar.gz
youtube-dl-5b075e27cb64faf7c0e5687b6e03d1969508ad66.zip
Merge pull request #1218 from patrickslin/patch-2
New sig len 89 algo
-rw-r--r--youtube_dl/extractor/youtube.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index ba2da4c51..3a8edbdc2 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -335,6 +335,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
return s[25] + s[3:25] + s[0] + s[26:42] + s[79] + s[43:79] + s[91] + s[80:83]
elif len(s) == 90:
return s[25] + s[3:25] + s[2] + s[26:40] + s[77] + s[41:77] + s[89] + s[78:81]
+ elif len(s) == 89:
+ return s[84:78:-1] + s[87] + s[77:60:-1] + s[0] + s[59:3:-1]
elif len(s) == 88:
return s[48] + s[81:67:-1] + s[82] + s[66:62:-1] + s[85] + s[61:48:-1] + s[67] + s[47:12:-1] + s[3] + s[11:3:-1] + s[2] + s[12]
elif len(s) == 87: