mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-25 02:57:22 +00:00
Set series_index to 1 when no series_index is provided
This commit is contained in:
parent
27291ae96f
commit
4dc6150d77
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user