]> git.lizzy.rs Git - nhentai.git/commitdiff
Merge branch 'pull/221' into master
authorRicter Zheng <RicterZheng@gmail.com>
Mon, 7 Jun 2021 08:01:54 +0000 (16:01 +0800)
committerGitHub <noreply@github.com>
Mon, 7 Jun 2021 08:01:54 +0000 (16:01 +0800)
1  2 
nhentai/cmdline.py
nhentai/command.py
nhentai/utils.py

Simple merge
index 76365d8b8855d4674b2b9a8a627fd2a0d2fa168d,92b6793e8a950d2b9b780bf46d168266baac024c..fe746cb014f80f1fba8e72ebadb85ab02ee32d90
@@@ -91,15 -89,10 +91,18 @@@ 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()
 +                      
 +            if options.generate_metadata:
 +              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)
Simple merge