Commit 4dc6150d authored by kyos's avatar kyos

Set series_index to 1 when no series_index is provided

parent 27291ae9
...@@ -2936,6 +2936,9 @@ def upload(): ...@@ -2936,6 +2936,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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment