From 4dc6150d77a5198a84cfcf3691ac7c1b3d7539ea Mon Sep 17 00:00:00 2001 From: kyos Date: Sun, 30 Jul 2017 00:30:21 +0200 Subject: [PATCH] Set series_index to 1 when no series_index is provided --- cps/web.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cps/web.py b/cps/web.py index ab3280d5..fc72bb41 100755 --- a/cps/web.py +++ b/cps/web.py @@ -2936,6 +2936,9 @@ def upload(): filepath = config.config_calibre_dir + os.sep + author_dir + os.sep + title_dir saved_filename = filepath + os.sep + data_name + meta.extension + if series_index == '': + series_index = 1 + if not os.path.exists(filepath): try: os.makedirs(filepath)