[ivi] Fix python 3.4 support
authorSergey M․ <dstftw@gmail.com>
Thu, 21 Nov 2019 16:38:39 +0000 (23:38 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 21 Nov 2019 16:38:39 +0000 (23:38 +0700)
youtube_dl/extractor/ivi.py

index 52b53bfebdeebc4e3526e332665f83785c36caad..315ea03faf0dff2d0b75536516295c2e379ed9d1 100644 (file)
@@ -91,10 +91,10 @@ class IviIE(InfoExtractor):
                     'contentid': video_id
                 }
             ]
-        }).encode()
+        })
 
         for site in (353, 183):
-            content_data = data % site
+            content_data = (data % site).encode()
             if site == 353:
                 try:
                     from Cryptodome.Cipher import Blowfish