mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-30 18:45:20 -04:00
Merge branch 'fix-check-library-malformed-paths' of https://github.com/un-pogaz/calibre
This commit is contained in:
@@ -576,7 +576,7 @@ class CheckLibraryDialog(QDialog):
|
||||
book_path = os.path.join(*lib_path.split(os.sep)[:-1])
|
||||
ext = os.path.splitext(lib_path)[1].strip('.')
|
||||
filename = self.db.new_api.format_files(id_)[ext.upper()] +'.'+ ext.lower()
|
||||
os.rename(os.path.join((self.db.library_path, lib_path)), os.path.join((self.db.library_path, book_path, filename)))
|
||||
os.rename(os.path.join(self.db.library_path, lib_path), os.path.join(self.db.library_path, book_path, filename))
|
||||
|
||||
def fix_items(self):
|
||||
for check in CHECKS:
|
||||
|
||||
Reference in New Issue
Block a user