mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-11-02 04:34:18 +09:00
YoutubeIE: add algo for length 79 (fixes #1126)
This commit is contained in:
1 parent
aedd6bb97d
commit
5c468ca8a8
3 files changed
+10
No files matched your search
@@ -63,5 +63,10 @@ class TestYoutubeSig(unittest.TestCase):
|
||||
right = "C>/?;}[{=+-(*&^%$#@!MNBVYXZASDFGHKLPOIU.TREWQ0q87659321mnbvcxzasdfghjkl4oiuytrewp"
|
||||
self.assertEqual(sig(wrong), right)
|
||||
|
||||
def test_79(self):
|
||||
wrong = "qwertyuioplkjhgfdsazxcvbnm1234567890QWERTYUIOPLKHGFDSAZXCVBNM!@#$%^&*(-+={[};?/"
|
||||
right = "Z?;}[{=+-(*&^%$#@!MNBVCXRASDFGHKLPOIUYT/EWQ0q87659321mnbvcxzasdfghjkl4oiuytrewp"
|
||||
self.assertEqual(sig(wrong), right)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user