1
0
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:
Taizo Simpson 2018-10-12 18:33:04 -04:00
parent 74fba8840e
commit 98cfe19a38
No known key found for this signature in database
GPG Key ID: D197B1197B2D4D68

View File

@ -306,7 +306,6 @@ class Track(PathMixin, db.Entity):
def extract_cover_art(self): def extract_cover_art(self):
if os.path.exists(self.path): if os.path.exists(self.path):
metadata = mutagen.File(self.path) metadata = mutagen.File(self.path)
data = None
if metadata: if metadata:
if isinstance(metadata.tags, mutagen.id3.ID3Tags) and len(metadata.tags.getall('APIC')) > 0: if isinstance(metadata.tags, mutagen.id3.ID3Tags) and len(metadata.tags.getall('APIC')) > 0:
return metadata.tags.getall('APIC')[0].data return metadata.tags.getall('APIC')[0].data