diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-10-22 21:58:06 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-10-22 23:19:37 +0530 |
commit | ad0090d0d23e938e8a2107777a83e6c6b92494d3 (patch) | |
tree | 1a3d82f94b70913e7c5a16ce890743f06e4ff8f3 /yt_dlp/cookies.py | |
parent | d183af3cc1dbb98d2e2f89dbc7cff2901bd10408 (diff) | |
download | hypervideo-pre-ad0090d0d23e938e8a2107777a83e6c6b92494d3.tar.lz hypervideo-pre-ad0090d0d23e938e8a2107777a83e6c6b92494d3.tar.xz hypervideo-pre-ad0090d0d23e938e8a2107777a83e6c6b92494d3.zip |
[cookies] Local State should be opened as utf-8
Closes #1276
Diffstat (limited to 'yt_dlp/cookies.py')
-rw-r--r-- | yt_dlp/cookies.py | 2 |
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'] |