MVP stage working.

The combination of getting an artist ID from MusicBrainz that is then used to pull an image from FanArt.TV seems to work.
This commit is contained in:
20xd6
2024-09-20 12:58:58 -04:00
parent 4c6bd5aeee
commit d6060c2e61
4 changed files with 250 additions and 8 deletions
+4 -5
View File
@@ -1,8 +1,7 @@
import os
def get_all(path):
all_dirs = []
for root, dirs, files in os.walk(path):
all_dirs.extend(dir for dir in dirs if os.path.isdir(os.path.join(root, dir)))
all_dirs = all_dirs[1:]
return all_dirs
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"))