[youtube] update algo for length 84

Only appears sometimes, nearly identical to length 86.
This commit is contained in:
Jaime Marquínez Ferrándiz 2013-08-29 22:44:29 +02:00
parent 52e1eea18b
commit 23b00bc0e4
2 changed files with 3 additions and 3 deletions

View file

@ -427,7 +427,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
elif len(s) == 85:
return s[83:34:-1] + s[0] + s[33:27:-1] + s[3] + s[26:19:-1] + s[34] + s[18:3:-1] + s[27]
elif len(s) == 84:
return s[5:40] + s[3] + s[41:48] + s[0] + s[49:84]
return s[81:36:-1] + s[0] + s[35:2:-1]
elif len(s) == 83:
return s[81:64:-1] + s[82] + s[63:52:-1] + s[45] + s[51:45:-1] + s[1] + s[44:1:-1] + s[0]
elif len(s) == 82: