dl/commands/psx.py

12 lines
319 B
Python

import requests
import json
file = requests.get("https://raw.githubusercontent.com/linuxserver/emulatorjs/master/metadata/psx.json")
games = json.loads(file.content)
for id in games:
for key in games[id]:
if key in ['vid', 'logo', 'back', 'corner']:
print(games[id]['name'])
break