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 @@ 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()