mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-22 17:06:17 +00:00
Removed unnecessary variable initialization
This commit is contained in:
parent
74fba8840e
commit
98cfe19a38
@ -306,7 +306,6 @@ class Track(PathMixin, db.Entity):
|
||||
def extract_cover_art(self):
|
||||
if os.path.exists(self.path):
|
||||
metadata = mutagen.File(self.path)
|
||||
data = None
|
||||
if metadata:
|
||||
if isinstance(metadata.tags, mutagen.id3.ID3Tags) and len(metadata.tags.getall('APIC')) > 0:
|
||||
return metadata.tags.getall('APIC')[0].data
|
||||
|
Loading…
Reference in New Issue
Block a user