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:
parent
753b4d9df8
commit
c89395b220
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user