From 94ad95763594f57b00603a4dc2ae9f08486dc091 Mon Sep 17 00:00:00 2001 From: GRiker Date: Sun, 6 Jun 2010 12:53:48 -0600 Subject: [PATCH] GwR revisions --- src/calibre/devices/apple/driver.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/calibre/devices/apple/driver.py b/src/calibre/devices/apple/driver.py index 41065af03a..5d589a944e 100644 --- a/src/calibre/devices/apple/driver.py +++ b/src/calibre/devices/apple/driver.py @@ -1514,7 +1514,12 @@ class ITUNES(DevicePlugin): ''' if isosx: storage_path = os.path.split(cached_book['lib_book'].location().path) - presumptive_path = os.path.join(self.iTunes_media,cached_book['author'][0],cached_book['title'],storage_path[1]) + presumptive_path = os.path.join(self.iTunes_media, + 'iTunes Music', + cached_book['author'][0], + cached_book['title'], + storage_path[1]) + if os.path.exists(presumptive_path): title_storage_path = storage_path[0] if DEBUG: