Fix bugs in Cybook/Kindle drivers

This commit is contained in:
Kovid Goyal 2009-01-24 06:39:14 -08:00
commit fec6cd442d
2 changed files with 5 additions and 1 deletions

View File

@ -32,6 +32,7 @@ class CYBOOKG3(USBMS):
STORAGE_CARD_VOLUME_LABEL = 'Cybook Gen 3 Storage Card'
EBOOK_DIR_MAIN = "eBooks"
EBOOK_DIR_CARD = "eBooks"
SUPPORTS_SUB_DIRS = True
def upload_books(self, files, names, on_card=False, end_session=True,

View File

@ -21,7 +21,10 @@ def string_to_authors(raw):
return authors
def authors_to_string(authors):
if authors is not None:
return ' & '.join([a.replace('&', '&&') for a in authors])
else:
return ''
def author_to_author_sort(author):
tokens = author.split()