1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-10 04:02:17 +00:00

Annotated method as static so python2 stops complaining

This commit is contained in:
Taizo Simpson 2018-10-12 19:36:21 -04:00
parent 753b4d9df8
commit c89395b220
No known key found for this signature in database
GPG Key ID: D197B1197B2D4D68

View File

@ -311,6 +311,7 @@ class Track(PathMixin, db.Entity):
def extract_cover_art(self):
return Track._extract_cover_art(self.path)
@staticmethod
def _extract_cover_art(path):
if os.path.exists(path):
metadata = mutagen.File(path)