Add psx.py
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michel Roux 2022-08-15 19:50:11 +02:00
parent eaf832ae8c
commit 67574de65a
2 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
.idea
.venv

11
commands/psx.py Normal file
View File

@ -0,0 +1,11 @@
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