Re-implement --no-download flag
This commit is contained in:
@@ -177,6 +177,9 @@ class RedditDownloader:
|
||||
try:
|
||||
downloader_class = DownloadFactory.pull_lever(submission.url)
|
||||
downloader = downloader_class(self.download_directory, submission)
|
||||
if self.args.no_download:
|
||||
logger.info('Skipping download for submission {}'.format(submission.id))
|
||||
else:
|
||||
content = downloader.download()
|
||||
for res in content:
|
||||
destination = self.file_name_formatter.format_path(res, self.download_directory)
|
||||
|
||||
Reference in New Issue
Block a user