Skip to content

Commit

Permalink
[downloader:ytdl] update _set_outtmpl() (fixes #2692)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Jun 20, 2022
1 parent fa902cd commit 1aae9f2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions gallery_dl/downloader/ytdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,14 @@ def _progress_hook(self, info):
@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):
Expand Down

0 comments on commit 1aae9f2

Please sign in to comment.