diff --git a/cps/helper.py b/cps/helper.py index f946a039..82d0b232 100644 --- a/cps/helper.py +++ b/cps/helper.py @@ -389,7 +389,7 @@ def update_dir_structure_file(book_id, calibrepath, first_author, orignal_filepa os.renames(os.path.normcase(os.path.join(dir_name, file)), os.path.normcase(os.path.join(new_path + dir_name[len(path):], file))) # change location in database to new author/title path - localbook.path = os.path.join(new_authordir, new_titledir) + localbook.path = os.path.join(new_authordir, new_titledir).replace('\\','/') except OSError as ex: log.error("Rename title from: %s to %s: %s", path, new_path, ex) log.debug(ex, exc_info=True) diff --git a/test/Calibre-Web TestSummary_Windows.html b/test/Calibre-Web TestSummary_Windows.html index 4e822ce9..e964e79e 100644 --- a/test/Calibre-Web TestSummary_Windows.html +++ b/test/Calibre-Web TestSummary_Windows.html @@ -37,20 +37,20 @@
-

Start Time: 2020-09-26 22:01:15

+

Start Time: 2020-10-11 15:27:15

-

Stop Time: 2020-09-26 23:31:10

+

Stop Time: 2020-10-11 16:40:06

-

Duration: 1h 15 min

+

Duration: 59:13 min

@@ -329,12 +329,12 @@ - + TestCoverEditBooks 1 0 - 1 0 + 1 0 Detail @@ -343,26 +343,508 @@ - +
TestCoverEditBooks - test_upload_jpg
- FAIL + ERROR
-