Skip to content

Commit dceede8

Browse files
committed
YouTube: new algo
1 parent 11a13bd commit dceede8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/you_get/downloader/youtube.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def decrypt_signature(s):
5151
elif len(s) == 84:
5252
return s[83:27:-1] + s[0] + s[26:5:-1] + s[2:0:-1] + s[27]
5353
elif len(s) == 83:
54-
return s[:15] + s[80] + s[16:80] + s[15]
54+
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]
5555
elif len(s) == 82:
5656
return s[36] + s[79:67:-1] + s[81] + s[66:40:-1] + s[33] + s[39:36:-1] + s[40] + s[35] + s[0] + s[67] + s[32:0:-1] + s[34]
5757
elif len(s) == 81:

0 commit comments

Comments
 (0)