Skip to content

Commit

Permalink
Merge pull request #1256 from patrickslin/patch-5
Browse files Browse the repository at this point in the history
Length 85 changed again? (fixes #1254)
  • Loading branch information
phihag committed Aug 16, 2013
2 parents 6daccbe + f9c3c90 commit b9c37b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def _decrypt_signature(self, s):
elif len(s) == 86:
return s[5:20] + s[2] + s[21:]
elif len(s) == 85:
return s[2:8] + s[0] + s[9:21] + s[65] + s[22:65] + s[84] + s[66:82] + s[21]
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[83:27:-1] + s[0] + s[26:5:-1] + s[2:0:-1] + s[27]
elif len(s) == 83:
Expand Down

0 comments on commit b9c37b9

Please sign in to comment.