UniTO/anno3/progmobile/backend/mozapp.server/mpd_dir/produce_imgs.py
2024-10-29 09:11:05 +01:00

13 lines
286 B
Python
Executable file

import json
import pickle
for location in ["artists", "covers"]:
alls = {}
with open("/home/user/.mpd/"+location+".pk", "rb") as f:
alls = pickle.load(f)
allj = json.dumps(alls)
with open("/home/user/.mpd/"+location+".json", "w") as f:
f.write(allj)