adapt to new cloud endpoints

+ export artists to json
This commit is contained in:
cwilvx committed 2024-12-11 14:22:20 +03:00
1 parent 8ff283cbcb
commit 77485dd0a7
3 files changed
+50 -27

No files matched your search

+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)