diff options
Diffstat (limited to 'gallery_dl/downloader/ytdl.py')
| -rw-r--r-- | gallery_dl/downloader/ytdl.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gallery_dl/downloader/ytdl.py b/gallery_dl/downloader/ytdl.py index ce921e3..fe6c4bc 100644 --- a/gallery_dl/downloader/ytdl.py +++ b/gallery_dl/downloader/ytdl.py @@ -29,6 +29,7 @@ class YoutubeDLDownloader(DownloaderBase): "nocheckcertificate": not self.config("verify", extractor._verify), "nopart": not self.part, "updatetime": self.config("mtime", True), + "proxy": extractor.session.proxies.get("http"), } options.update(self.config("raw-options") or {}) @@ -58,6 +59,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): |
