mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Fix adding of books to the 505 on windows.
This commit is contained in:
parent
2422b77984
commit
c7d2ac059e
@ -376,7 +376,7 @@ class PRS505(Device):
|
||||
info = metadata.next()
|
||||
path = location[0]
|
||||
on_card = 1 if location[3] else 0
|
||||
name = path.rpartition('/')[2]
|
||||
name = path.rpartition(os.sep)[2]
|
||||
name = (cls.CARD_PATH_PREFIX+'/' if on_card else 'database/media/books/') + name
|
||||
name = name.replace('//', '/')
|
||||
booklists[on_card].add_book(info, name, *location[1:-1])
|
||||
|
Loading…
x
Reference in New Issue
Block a user