Bläddra i källkod

[ivi] Fix python 3.4 support

Sergey M․ 5 år sedan
förälder
incheckning
f8015c1574
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      youtube_dl/extractor/ivi.py

+ 2 - 2
youtube_dl/extractor/ivi.py

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