aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/ytdl.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/ytdl.py')
-rw-r--r--gallery_dl/ytdl.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gallery_dl/ytdl.py b/gallery_dl/ytdl.py
index 0296498..b7ee1ca 100644
--- a/gallery_dl/ytdl.py
+++ b/gallery_dl/ytdl.py
@@ -31,7 +31,7 @@ def construct_YoutubeDL(module, obj, user_opts, system_opts=None):
module.YoutubeDL.deprecation_warning = util.false
if cfg := config("config-file"):
- with open(util.expand_path(cfg)) as fp:
+ with open(util.expand_path(cfg), encoding="utf-8") as fp:
contents = fp.read()
argv = shlex.split(contents, comments=True)