[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:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user