]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/mixcloud.py
[compat] Remove more functions
[yt-dlp.git] / yt_dlp / extractor / mixcloud.py
index 796f268f430c7fc5418df503ec0e5d521618535d..a77d7e6824f963d75dbfbac11e065e28b9abbf9b 100644 (file)
@@ -3,7 +3,6 @@
 from .common import InfoExtractor
 from ..compat import (
     compat_b64decode,
-    compat_chr,
     compat_ord,
     compat_str,
     compat_urllib_parse_unquote,
@@ -72,7 +71,7 @@ class MixcloudIE(MixcloudBaseIE):
     def _decrypt_xor_cipher(key, ciphertext):
         """Encrypt/Decrypt XOR cipher. Both ways are possible because it's XOR."""
         return ''.join([
-            compat_chr(compat_ord(ch) ^ compat_ord(k))
+            chr(compat_ord(ch) ^ compat_ord(k))
             for ch, k in zip(ciphertext, itertools.cycle(key))])
 
     def _real_extract(self, url):