Update of /cvsroot/gtkpod/libgpod/bindings/python
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv3316

Modified Files:
        ipod.py 
Log Message:
put down the pipe and commit something that should actually work...

Index: ipod.py
===================================================================
RCS file: /cvsroot/gtkpod/libgpod/bindings/python/ipod.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- ipod.py     16 Apr 2007 02:33:45 -0000      1.16
+++ ipod.py     16 Apr 2007 04:36:33 -0000      1.17
@@ -385,7 +385,8 @@
     def copy_to_ipod(self):
         """Copy the track to the iPod."""
         self['userdata']['sha1_hash'] = 
gtkpod.sha1_hash(self._userdata_into_default_locale('filename'))
-        if not gpod.itdb_get_mountpoint(self._track.itdb):
+        mp = gpod.itdb_get_mountpoint(self._track.itdb)
+        if not mp:
             return False
         if gpod.itdb_cp_track_to_ipod(self._track,
                                       
self._userdata_into_default_locale('filename'),
@@ -393,8 +394,9 @@
             raise TrackException('Unable to copy %s to iPod as %s' % (
                 self._userdata_into_default_locale('filename'),
                 self))
+        fname = self.ipod_filename().replace(mp, '').replace(os.path.sep, ':')
+        self['userdata']['filename_ipod'] = fname
         self['userdata']['transferred'] = 1
-        self['userdata']['filename_ipod'] = self._track['ipod_path']
         return True
 
     def ipod_filename(self):


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to