1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-26 18:10:30 +00:00

Set series_index to 1 when no series_index is provided

This commit is contained in:
kyos 2017-07-30 00:30:21 +02:00
parent 83d07147e6
commit aab32ceee9

View File

@ -2915,6 +2915,9 @@ def upload():
filepath = config.config_calibre_dir + os.sep + author_dir + os.sep + title_dir filepath = config.config_calibre_dir + os.sep + author_dir + os.sep + title_dir
saved_filename = filepath + os.sep + data_name + meta.extension saved_filename = filepath + os.sep + data_name + meta.extension
if series_index == '':
series_index = 1
if not os.path.exists(filepath): if not os.path.exists(filepath):
try: try:
os.makedirs(filepath) os.makedirs(filepath)