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

backup metadata first step

This commit is contained in:
Ozzieisaacs
2022-09-10 18:26:52 +02:00
parent 110d283a50
commit ca0ee5d391
6 changed files with 232 additions and 3 deletions

View File

@@ -19,7 +19,6 @@
import os
import io
import sys
import mimetypes
import re
import shutil
@@ -685,7 +684,8 @@ def update_dir_structure(book_id,
def delete_book(book, calibrepath, book_format):
if not book_format:
clear_cover_thumbnail_cache(book.id) ## here it breaks
clear_cover_thumbnail_cache(book.id) ## here it breaks
calibre_db.delete_dirty_metadata(book.id)
if config.config_use_google_drive:
return delete_book_gdrive(book, book_format)
else: