From 67574de65ae21de863edea455e5132c37c61a395 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Mon, 15 Aug 2022 19:50:11 +0200 Subject: [PATCH] Add psx.py --- .gitignore | 1 + commands/psx.py | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 commands/psx.py 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