aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/cookies.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-06-24 16:24:43 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-06-25 00:14:12 +0530
commit14f25df2b6233553e968df023430ca96c0b1df9f (patch)
treec611d59d4462820a9e99726b9179811ed88a35b8 /yt_dlp/cookies.py
parent54007a45f11ed730352324289b714baefd2901eb (diff)
downloadhypervideo-pre-14f25df2b6233553e968df023430ca96c0b1df9f.tar.lz
hypervideo-pre-14f25df2b6233553e968df023430ca96c0b1df9f.tar.xz
hypervideo-pre-14f25df2b6233553e968df023430ca96c0b1df9f.zip
[compat] Remove deprecated functions from core code
Diffstat (limited to 'yt_dlp/cookies.py')
-rw-r--r--yt_dlp/cookies.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/cookies.py b/yt_dlp/cookies.py
index e2ff8c39f..df8f97b44 100644
--- a/yt_dlp/cookies.py
+++ b/yt_dlp/cookies.py
@@ -1,3 +1,4 @@
+import base64
import contextlib
import ctypes
import http.cookiejar
@@ -18,7 +19,6 @@ from .aes import (
aes_gcm_decrypt_and_verify_bytes,
unpad_pkcs7,
)
-from .compat import compat_b64decode
from .dependencies import (
_SECRETSTORAGE_UNAVAILABLE_REASON,
secretstorage,
@@ -836,7 +836,7 @@ def _get_windows_v10_key(browser_root, logger):
except KeyError:
logger.error('no encrypted key in Local State')
return None
- encrypted_key = compat_b64decode(base64_key)
+ encrypted_key = base64.b64decode(base64_key)
prefix = b'DPAPI'
if not encrypted_key.startswith(prefix):
logger.error('invalid key')