adapt to new cloud endpoints

+ export artists to json
This commit is contained in:
cwilvx
2024-12-11 14:22:20 +03:00
parent 8ff283cbcb
commit 77485dd0a7
3 changed files with 50 additions and 27 deletions
+13
View File
@@ -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)