Revision: 2192
http://gtkpod.svn.sourceforge.net/gtkpod/?rev=2192&view=rev
Author: tmzullinger
Date: 2009-01-03 02:57:45 +0000 (Sat, 03 Jan 2009)
Log Message:
-----------
Python: make Track.get_coverart() return None if artwork is absent
Modified Paths:
--------------
libgpod/trunk/ChangeLog
libgpod/trunk/bindings/python/ipod.py
Modified: libgpod/trunk/ChangeLog
===================================================================
--- libgpod/trunk/ChangeLog 2009-01-02 13:47:26 UTC (rev 2191)
+++ libgpod/trunk/ChangeLog 2009-01-03 02:57:45 UTC (rev 2192)
@@ -1,3 +1,8 @@
+2009-01-02 Todd Zullinger <tmzullinger at users.sourceforge.net>
+
+ * bindings/python/ipod.py:
+ Make Track.get_coverart() return None if artwork is absent
+
2009-01-02 Christophe Fergeau <[email protected]>
* NEWS: more news, hope the packagers will notice the new
Modified: libgpod/trunk/bindings/python/ipod.py
===================================================================
--- libgpod/trunk/bindings/python/ipod.py 2009-01-02 13:47:26 UTC (rev
2191)
+++ libgpod/trunk/bindings/python/ipod.py 2009-01-03 02:57:45 UTC (rev
2192)
@@ -403,8 +403,10 @@
pixbuf)
def get_coverart(self):
- return Photo(proxied_photo=self._track.artwork,
- ownerdb=self._track.itdb)
+ if gpod.itdb_track_has_thumbnails(self._track):
+ return Photo(proxied_photo=self._track.artwork,
+ ownerdb=self._track.itdb)
+ return None
def copy_to_ipod(self):
"""Copy the track to the iPod."""
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2