]> git.lizzy.rs Git - nhentai.git/commitdiff
fix #74
authorRicterZ <ricterzheng@gmail.com>
Sun, 28 Jul 2019 03:46:06 +0000 (11:46 +0800)
committersymant233 <symant233@gmail.com>
Sun, 4 Aug 2019 14:39:31 +0000 (22:39 +0800)
README.rst
nhentai/utils.py

index 235fd0be20efa8f560108c2e0790ec23d5902240..c7831580931818df8748481025254e489faef3a4 100644 (file)
@@ -48,7 +48,7 @@ Set your nhentai cookie against captcha:
 
 .. code-block:: bash
 
-    # 
+    #
     nhentai --cookie "YOUR COOKIE FROM nhentai.net"
 
 Download specified doujinshi:
index 3bdf278c9d33ec9cacba4bfaceac73c4275b2cf5..6a0d00bb848f620c8ce8ed686ba1b90c08274964 100644 (file)
@@ -168,7 +168,7 @@ def generate_main_html(output_dir='./'):
 def generate_cbz(output_dir='.', doujinshi_obj=None, rm_origin_dir=False):
     if doujinshi_obj is not None:
         doujinshi_dir = os.path.join(output_dir, doujinshi_obj.filename)
-        cbz_filename = os.path.join(os.path.join(doujinshi_dir, '..'), '%s.cbz' % doujinshi_obj.id)
+        cbz_filename = os.path.join(os.path.join(doujinshi_dir, '..'), '{}.cbz'.format(doujinshi_obj.filename))
     else:
         cbz_filename = './doujinshi.cbz'
         doujinshi_dir = '.'