mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Sony T1: Fix behavior which caused Windows path seps to leak into Calibre
This commit is contained in:
parent
9b56902017
commit
075ca4e603
@ -256,8 +256,7 @@ class PRST1(USBMS):
|
||||
newmi = book
|
||||
|
||||
# Get Metadata We Want
|
||||
# Make sure lpath uses Unix-style strings
|
||||
lpath = book.lpath.replace('\\', '/')
|
||||
lpath = book.lpath
|
||||
try:
|
||||
if opts.use_author_sort:
|
||||
if newmi.author_sort :
|
||||
@ -432,6 +431,7 @@ class PRST1(USBMS):
|
||||
source_id = 1
|
||||
|
||||
metadata.lpath = filepath.partition(prefix)[2]
|
||||
metadata.lpath = metadata.lpath.replace('\\', '/')
|
||||
dbpath = self.normalize_path(prefix + DBPATH)
|
||||
debug_print("SQLite DB Path: " + dbpath)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user