mirror of
https://github.com/RicterZ/nhentai.git
synced 2025-04-20 02:41:19 +02:00
fix bug #13
This commit is contained in:
parent
7c9693785e
commit
0e14dd62d5
@ -4,6 +4,7 @@ from __future__ import unicode_literals, print_function
|
|||||||
import os
|
import os
|
||||||
import string
|
import string
|
||||||
from nhentai.logger import logger
|
from nhentai.logger import logger
|
||||||
|
from nhentai.utils import format_filename
|
||||||
|
|
||||||
|
|
||||||
class _Singleton(type):
|
class _Singleton(type):
|
||||||
@ -34,7 +35,8 @@ def generate_html(output_dir='.', doujinshi_obj=None):
|
|||||||
previous = ''
|
previous = ''
|
||||||
|
|
||||||
if doujinshi_obj is not None:
|
if doujinshi_obj is not None:
|
||||||
doujinshi_dir = os.path.join(output_dir, str(doujinshi_obj.name))
|
doujinshi_dir = os.path.join(output_dir, format_filename('%s-%s' % (doujinshi_obj.id,
|
||||||
|
doujinshi_obj.name[:200])))
|
||||||
else:
|
else:
|
||||||
doujinshi_dir = '.'
|
doujinshi_dir = '.'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user