From 91cb3fb179d1e3662602c3be31908170b49102fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alban=20F=C3=A9ron?= Date: Sat, 6 Nov 2021 17:45:25 +0100 Subject: [PATCH] black --- supysonic/api/media.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/supysonic/api/media.py b/supysonic/api/media.py index 66e0dfd..18622a0 100644 --- a/supysonic/api/media.py +++ b/supysonic/api/media.py @@ -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)