From 083e14ad9a7d1f6977e51f30e9002bb9f12b2ce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Fri, 25 Oct 2019 13:17:13 +0200 Subject: [PATCH] [downloader:ytdl] add data from '_ytdl_extra' to info_dicts --- gallery_dl/downloader/ytdl.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gallery_dl/downloader/ytdl.py b/gallery_dl/downloader/ytdl.py index ce921e32..b19b62e3 100644 --- a/gallery_dl/downloader/ytdl.py +++ b/gallery_dl/downloader/ytdl.py @@ -58,6 +58,11 @@ class YoutubeDLDownloader(DownloaderBase): return self._download_playlist(pathfmt, info_dict) else: info_dict = info_dict["entries"][index] + + extra = pathfmt.kwdict.get("_ytdl_extra") + if extra: + info_dict.update(extra) + return self._download_video(pathfmt, info_dict) def _download_video(self, pathfmt, info_dict):