mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix #872638 (Sony T1: Windows Fixes (and "Use Author Sort"))
This commit is contained in:
commit
745ee3d242
@ -258,8 +258,7 @@ class PRST1(USBMS):
|
|||||||
newmi = book
|
newmi = book
|
||||||
|
|
||||||
# Get Metadata We Want
|
# Get Metadata We Want
|
||||||
# Make sure lpath uses Unix-style strings
|
lpath = book.lpath
|
||||||
lpath = book.lpath.replace('\\', '/')
|
|
||||||
try:
|
try:
|
||||||
if opts.use_author_sort:
|
if opts.use_author_sort:
|
||||||
if newmi.author_sort :
|
if newmi.author_sort :
|
||||||
@ -434,6 +433,7 @@ class PRST1(USBMS):
|
|||||||
source_id = 1
|
source_id = 1
|
||||||
|
|
||||||
metadata.lpath = filepath.partition(prefix)[2]
|
metadata.lpath = filepath.partition(prefix)[2]
|
||||||
|
metadata.lpath = metadata.lpath.replace('\\', '/')
|
||||||
dbpath = self.normalize_path(prefix + DBPATH)
|
dbpath = self.normalize_path(prefix + DBPATH)
|
||||||
debug_print("SQLite DB Path: " + dbpath)
|
debug_print("SQLite DB Path: " + dbpath)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user