From f2d21185afa8c84797bc27932c9c214d059ac350 Mon Sep 17 00:00:00 2001 From: 20xd6 <20xd6@airmail.cc> Date: Fri, 20 Sep 2024 13:58:58 -0400 Subject: [PATCH] Check for artist.png when looking for local art. --- dir_activities.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dir_activities.py b/dir_activities.py index 198eae5..07f0047 100644 --- a/dir_activities.py +++ b/dir_activities.py @@ -4,4 +4,7 @@ def get_all(path): return [name for name in os.listdir(path) if os.path.isdir(os.path.join(path, name))] def has_artist_art(path): - return os.path.exists(os.path.join(path, "artist.jpg")) \ No newline at end of file + if(os.path.exists(os.path.join(path, "artist.jpg")))or (os.path.exists(os.path.join(path, "artist.png"))) + return True + else: + return False \ No newline at end of file