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:
+4
-5
@@ -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"))
|
||||
Reference in New Issue
Block a user