USBMS: Convert authors to string when settings path

This commit is contained in:
John Schember 2009-03-07 13:26:14 -05:00
parent d24c879e47
commit e12384139a
2 changed files with 3 additions and 2 deletions

View File

@ -7,6 +7,7 @@ Device driver for Bookeen's Cybook Gen 3
import os, shutil import os, shutil
from itertools import cycle from itertools import cycle
from calibre.ebooks.metadata import authors_to_string
from calibre.devices.errors import FreeSpaceError from calibre.devices.errors import FreeSpaceError
from calibre.devices.usbms.driver import USBMS from calibre.devices.usbms.driver import USBMS
import calibre.devices.cybookg3.t2b as t2b import calibre.devices.cybookg3.t2b as t2b
@ -84,7 +85,7 @@ class CYBOOKG3(USBMS):
break break
if newpath == path: if newpath == path:
newpath = os.path.join(newpath, mdata.get('authors', '')) newpath = os.path.join(newpath, authors_to_string(mdata.get('authors', '')))
newpath = os.path.join(newpath, mdata.get('title', '')) newpath = os.path.join(newpath, mdata.get('title', ''))
if not os.path.exists(newpath): if not os.path.exists(newpath):

View File

@ -115,7 +115,7 @@ class USBMS(Device):
break break
if newpath == path: if newpath == path:
newpath = os.path.join(newpath, mdata.get('authors', '')) newpath = os.path.join(newpath, authors_to_string(mdata.get('authors', '')))
newpath = os.path.join(newpath, mdata.get('title', '')) newpath = os.path.join(newpath, mdata.get('title', ''))
if not os.path.exists(newpath): if not os.path.exists(newpath):