diff --git a/.gitignore b/.gitignore index 485dee6..3228387 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .idea +.venv diff --git a/commands/psx.py b/commands/psx.py new file mode 100644 index 0000000..c72cc1b --- /dev/null +++ b/commands/psx.py @@ -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