A feature-rich command-line audio/video downloader
Let aes_decrypt_text return bytes instead of unicode
rzhxeo0012690aae97
diff --git a/youtube_dl/aes.py b/youtube_dl/aes.pyindex 9913d59a4e..9a0c93fa6f 100644--- a/youtube_dl/aes.py+++ b/youtube_dl/aes.py@@ -3,7 +3,7 @@ __all__ = ['aes_encrypt', 'key_expansion', 'aes_ctr_decrypt', 'aes_decrypt_text'import base64from math import ceil-from .utils import bytes_to_intlist+from .utils import bytes_to_intlist, intlist_to_bytesBLOCK_SIZE_BYTES = 16@@ -118,7 +118,7 @@ def aes_decrypt_text(data, password, key_size_bytes):return tempdecrypted_data = aes_ctr_decrypt(cipher, key, Counter())- plaintext = ''.join(map(lambda x: chr(x), decrypted_data))+ plaintext = intlist_to_bytes(decrypted_data)return plaintext