From: Nicholas P. <nic...@ni...> - 2007-02-10 13:14:13
|
Thanks Jorg, On Sat, 10 Feb 2007, Jorg Schuler wrote: > Summary: libgpod python bindings fail to write files to ipod > > Initial Comment: > In bindings/python/ipod.py line 240 should be changed from: > > transferred = int(track['userdata']['transferred']) > > to: > > transferred = int(track['transferred']) Stalwart, can you give an example of this failing? It 'worksforme' at the moment! Maybe add this: --- ipod.py 14 Jan 2007 21:40:16 -0000 1.11 +++ ipod.py 10 Feb 2007 13:13:28 -0000 @@ -236,14 +236,17 @@ class Database: return to_copy=[] for track in self: + print track['userdata'] try: transferred = int(track['userdata']['transferred']) - except KeyError: + except KeyError, e: + print e transferred = 1 if not transferred: to_copy.append(track) i = 0 total = len(to_copy) + print to_copy for track in to_copy: if callback: i=i+1 to help see what is going wrong for you. Nick -- Nick Piper, Developer, LogicaCMG http://www.nickpiper.co.uk/ GPG Encrypted mail welcome! 1024D/3ED8B27F Choose life. Be Vegan :-) Please reduce needless cruelty & suffering ! |