1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-12-17 22:55:42 +07:00

YoutubeIE: add algo for length 79 (fixes #1126)

This commit is contained in:
Jaime Marquínez Ferrándiz
2013-07-25 22:50:24 +02:00
parent aedd6bb97d
commit 5c468ca8a8
3 changed files with 10 additions and 0 deletions

View File

@@ -63,5 +63,10 @@ def test_81(self):
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()