mirror of
https://github.com/spl0k/supysonic.git
synced 2024-11-09 19:52:16 +00:00
black
This commit is contained in:
parent
f8c3d99e87
commit
91cb3fb179
@ -301,7 +301,9 @@ def _cover_from_collection(obj, extract=True):
|
||||
cover_path = os.path.join(obj.path, obj.cover_art)
|
||||
|
||||
elif isinstance(obj, Album):
|
||||
track_with_folder_cover = obj.tracks.select(lambda t: t.folder.cover_art is not None).first()
|
||||
track_with_folder_cover = obj.tracks.select(
|
||||
lambda t: t.folder.cover_art is not None
|
||||
).first()
|
||||
if track_with_folder_cover is not None:
|
||||
cover_path = _cover_from_collection(track_with_folder_cover.folder)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user