CoverArtImage.maintype defaults to 'front' if is_front is set or no type set

This commit is contained in:
Laurent Monin
2014-05-16 20:38:32 +02:00
parent 9966908668
commit 07bcbb1abe

View File

@@ -166,6 +166,8 @@ class CoverArtImage:
@property
def maintype(self):
if self.is_front_image() or not self.types:
return u'front'
return self.types[0]
def _make_image_filename(self, filename, dirname, metadata):