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:
parent
b069783578
commit
00fe1c81b2
@ -134,6 +134,7 @@ def parse_command_line(module, argv):
|
|||||||
else:
|
else:
|
||||||
date = module.DateRange(opts.dateafter, opts.datebefore)
|
date = module.DateRange(opts.dateafter, opts.datebefore)
|
||||||
|
|
||||||
|
decodeOption = getattr(module, "decodeOption", util.identity)
|
||||||
compat_opts = getattr(opts, "compat_opts", ())
|
compat_opts = getattr(opts, "compat_opts", ())
|
||||||
|
|
||||||
def _unused_compat_opt(name):
|
def _unused_compat_opt(name):
|
||||||
@ -355,8 +356,8 @@ def parse_command_line(module, argv):
|
|||||||
"allsubtitles": opts.allsubtitles,
|
"allsubtitles": opts.allsubtitles,
|
||||||
"subtitlesformat": opts.subtitlesformat,
|
"subtitlesformat": opts.subtitlesformat,
|
||||||
"subtitleslangs": opts.subtitleslangs,
|
"subtitleslangs": opts.subtitleslangs,
|
||||||
"matchtitle": module.decodeOption(opts.matchtitle),
|
"matchtitle": decodeOption(opts.matchtitle),
|
||||||
"rejecttitle": module.decodeOption(opts.rejecttitle),
|
"rejecttitle": decodeOption(opts.rejecttitle),
|
||||||
"max_downloads": opts.max_downloads,
|
"max_downloads": opts.max_downloads,
|
||||||
"prefer_free_formats": opts.prefer_free_formats,
|
"prefer_free_formats": opts.prefer_free_formats,
|
||||||
"trim_file_name": getattr(opts, "trim_file_name", None),
|
"trim_file_name": getattr(opts, "trim_file_name", None),
|
||||||
|
Loading…
Reference in New Issue
Block a user