From e12384139a326d5faa51cbe3adff9f124bcd1fcd Mon Sep 17 00:00:00 2001 From: John Schember Date: Sat, 7 Mar 2009 13:26:14 -0500 Subject: [PATCH] USBMS: Convert authors to string when settings path --- src/calibre/devices/cybookg3/driver.py | 3 ++- src/calibre/devices/usbms/driver.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/devices/cybookg3/driver.py b/src/calibre/devices/cybookg3/driver.py index 6a77c09479..0a9d69f7a9 100644 --- a/src/calibre/devices/cybookg3/driver.py +++ b/src/calibre/devices/cybookg3/driver.py @@ -7,6 +7,7 @@ Device driver for Bookeen's Cybook Gen 3 import os, shutil from itertools import cycle +from calibre.ebooks.metadata import authors_to_string from calibre.devices.errors import FreeSpaceError from calibre.devices.usbms.driver import USBMS import calibre.devices.cybookg3.t2b as t2b @@ -84,7 +85,7 @@ class CYBOOKG3(USBMS): break 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', '')) if not os.path.exists(newpath): diff --git a/src/calibre/devices/usbms/driver.py b/src/calibre/devices/usbms/driver.py index a088bf1a32..06bfa243f1 100644 --- a/src/calibre/devices/usbms/driver.py +++ b/src/calibre/devices/usbms/driver.py @@ -115,7 +115,7 @@ class USBMS(Device): break 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', '')) if not os.path.exists(newpath):