mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 11:04:42 +00:00
adapt to new cloud endpoints
+ export artists to json
This commit is contained in:
1 parent
8ff283cbcb
commit
77485dd0a7
3 files changed
+50
-27
No files matched your search
@@ -162,3 +162,16 @@ class ArtistStore:
|
||||
return TrackStore.get_tracks_by_trackhashes(entry.trackhashes)
|
||||
|
||||
return []
|
||||
|
||||
@classmethod
|
||||
def export(cls):
|
||||
path = "artists.json"
|
||||
|
||||
with open(path, "w") as f:
|
||||
data = [
|
||||
{
|
||||
"name": a.name,
|
||||
}
|
||||
for a in cls.get_flat_list()
|
||||
]
|
||||
json.dump(data, f)
|
||||
Reference in new issue
Block a user