diff --git a/gallery_dl/downloader/common.py b/gallery_dl/downloader/common.py index 696afc0b..772a0f24 100644 --- a/gallery_dl/downloader/common.py +++ b/gallery_dl/downloader/common.py @@ -39,7 +39,7 @@ class DownloaderBase(): def download(self, url, pathfmt): """Download the resource at 'url' and write it to a file-like object""" try: - self.download_impl(url, pathfmt) + return self.download_impl(url, pathfmt) except Exception: print() raise diff --git a/gallery_dl/job.py b/gallery_dl/job.py index 877b1b8a..7d08a0de 100644 --- a/gallery_dl/job.py +++ b/gallery_dl/job.py @@ -334,6 +334,9 @@ class TestJob(DownloadJob): self.update_keyword(keywords) self.update_content(url) + def handle_urllist(self, urls, keywords): + self.handle_url(urls[0], keywords) + def handle_directory(self, keywords): self.update_keyword(keywords, False)