1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2025-02-01 12:01:41 +01:00

[downloader:ytdl] update _set_outtmpl() (fixes #2692)

bf1824b391
This commit is contained in:
Mike Fährmann 2022-06-19 12:11:48 +02:00
parent fa902cd54d
commit 1aae9f2b71
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -138,9 +138,14 @@ class YoutubeDLDownloader(DownloaderBase):
@staticmethod
def _set_outtmpl(ytdl_instance, outtmpl):
try:
ytdl_instance.outtmpl_dict["default"] = outtmpl
ytdl_instance._parse_outtmpl
except AttributeError:
ytdl_instance.params["outtmpl"] = outtmpl
try:
ytdl_instance.outtmpl_dict["default"] = outtmpl
except AttributeError:
ytdl_instance.params["outtmpl"] = outtmpl
else:
ytdl_instance.params["outtmpl"] = {"default": outtmpl}
def compatible_formats(formats):