connect / dataparser.py
thejagstudio's picture
Upload 167 files
00c2d61 verified
raw
history blame contribute delete
403 Bytes
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)