summaryrefslogtreecommitdiffstats
path: root/bindings/python
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/python')
-rw-r--r--bindings/python/ipod.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bindings/python/ipod.py b/bindings/python/ipod.py
index 4c82ebe..8853d01 100644
--- a/bindings/python/ipod.py
+++ b/bindings/python/ipod.py
@@ -403,8 +403,10 @@ class Track:
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."""