diff options
| author | 2024-12-02 00:31:59 -0500 | |
|---|---|---|
| committer | 2024-12-02 00:31:59 -0500 | |
| commit | 1981ccaaea6eab2cf32536ec5afe132a870914d8 (patch) | |
| tree | 013f1e17d922d3a6abf7f57aa6a175c2ce5d93bc /gallery_dl/ytdl.py | |
| parent | fc004701f923bb954a22c7fec2ae8d607e78cb2b (diff) | |
New upstream version 1.28.0.upstream/1.28.0
Diffstat (limited to 'gallery_dl/ytdl.py')
| -rw-r--r-- | gallery_dl/ytdl.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gallery_dl/ytdl.py b/gallery_dl/ytdl.py index fe88c2c..32545e2 100644 --- a/gallery_dl/ytdl.py +++ b/gallery_dl/ytdl.py @@ -134,6 +134,7 @@ def parse_command_line(module, argv): else: date = module.DateRange(opts.dateafter, opts.datebefore) + decodeOption = getattr(module, "decodeOption", util.identity) compat_opts = getattr(opts, "compat_opts", ()) def _unused_compat_opt(name): @@ -355,8 +356,8 @@ def parse_command_line(module, argv): "allsubtitles": opts.allsubtitles, "subtitlesformat": opts.subtitlesformat, "subtitleslangs": opts.subtitleslangs, - "matchtitle": module.decodeOption(opts.matchtitle), - "rejecttitle": module.decodeOption(opts.rejecttitle), + "matchtitle": decodeOption(opts.matchtitle), + "rejecttitle": decodeOption(opts.rejecttitle), "max_downloads": opts.max_downloads, "prefer_free_formats": opts.prefer_free_formats, "trim_file_name": getattr(opts, "trim_file_name", None), |
