aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/cookies.py
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-10-31 11:36:52 -0500
committerJesús <heckyel@hyperbola.info>2021-10-31 11:36:52 -0500
commit5bb25093eb718346ab8a723d2c04f0066fc3958a (patch)
tree8a7fa5611895a933eaf1ef1623f7b9e1a1c36157 /yt_dlp/cookies.py
parentc7afb25e19a91493db6069d1db9f7d1bc8491dc1 (diff)
parent652fb0d446524af4b783276babd55f5fc6a3afeb (diff)
downloadhypervideo-pre-5bb25093eb718346ab8a723d2c04f0066fc3958a.tar.lz
hypervideo-pre-5bb25093eb718346ab8a723d2c04f0066fc3958a.tar.xz
hypervideo-pre-5bb25093eb718346ab8a723d2c04f0066fc3958a.zip
updated from upstream | 31/10/2021 at 11:36
Diffstat (limited to 'yt_dlp/cookies.py')
-rw-r--r--yt_dlp/cookies.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/cookies.py b/yt_dlp/cookies.py
index 5f7fdf584..c9ae9b6db 100644
--- a/yt_dlp/cookies.py
+++ b/yt_dlp/cookies.py
@@ -620,7 +620,7 @@ def _get_windows_v10_key(browser_root, logger):
if path is None:
logger.error('could not find local state file')
return None
- with open(path, 'r') as f:
+ with open(path, 'r', encoding='utf8') as f:
data = json.load(f)
try:
base64_key = data['os_crypt']['encrypted_key']