[dl:ytdl] fix crash when using legacy 'youtube_dl' (#6949)

https://github.com/mikf/gallery-dl/issues/6949#issuecomment-2906920039

fixes regression introduced in 29d315e495
This commit is contained in:
Mike Fährmann
2025-05-24 19:58:09 +02:00
parent 1f869c2786
commit 3e7a5fcb00

View File

@@ -150,7 +150,7 @@ class YoutubeDLDownloader(DownloaderBase):
self.log.debug("", exc_info=exc) self.log.debug("", exc_info=exc)
return False return False
pathfmt.temppath = info_dict["filepath"] pathfmt.temppath = info_dict.get("filepath") or info_dict["_filename"]
return True return True
def _download_playlist(self, ytdl_instance, pathfmt, info_dict): def _download_playlist(self, ytdl_instance, pathfmt, info_dict):