]> git.lizzy.rs Git - nhentai.git/blobdiff - nhentai/command.py
Merge branch 'pull/221' into master
[nhentai.git] / nhentai / command.py
index 76365d8b8855d4674b2b9a8a627fd2a0d2fa168d..fe746cb014f80f1fba8e72ebadb85ab02ee32d90 100644 (file)
@@ -91,7 +91,9 @@ def main():
                                 timeout=options.timeout, delay=options.delay)
 
         for doujinshi in doujinshi_list:
-
+            if not options.dryrun:
+                doujinshi.downloader = downloader
+                doujinshi.download()
                                                
             doujinshi.downloader = downloader
             doujinshi.download()
@@ -100,6 +102,7 @@ def main():
               table=doujinshi.table            
               generate_metadatafile(options.output_dir,table,doujinshi)
                        
+
             if options.is_save_download_history:
                 with DB() as db:
                     db.add_one(doujinshi.id)