1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-21 18:22:30 +01:00

[ytdl] fix AttributeError caused by 'decodeOption()' removal

in yt-dlp 2024.11.18
This commit is contained in:
Mike Fährmann 2024-11-18 16:04:13 +01:00
parent b069783578
commit 00fe1c81b2
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -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),