1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-16 16:17:39 +00:00

Fix #1354 (Error on uploading single book, because of missing rarfile)

This commit is contained in:
Ozzieisaacs
2020-05-05 18:48:40 +02:00
parent fcbeeca305
commit 850a85915b
2 changed files with 2 additions and 1 deletions

View File

@@ -292,6 +292,7 @@ def delete_book_file(book, calibrepath, book_format=None):
for file in os.listdir(path):
if file.upper().endswith("."+book_format):
os.remove(os.path.join(path, file))
return True, None
else:
if os.path.isdir(path):
if len(next(os.walk(path))[1]):