Spaces:
Running
Running
| import json | |
| with open("./api/metadata.json", "r") as f: | |
| data = json.load(f) | |
| keys = ['url', 'title', 'album', 'artist', 'year', 'duration', 'albumArtist', 'thumbnail'] | |
| category = [] | |
| for i in range(len(data)): | |
| if 8 != len(data[i].keys()): | |
| print(data[i]) | |
| # data[i]["thumbnail"] = False | |
| # with open("./api/metadata.json", "w") as f: | |
| # json.dump(data, f, indent=4) |