File size: 403 Bytes
00c2d61
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)