From 9867dd5a228e536606d0a88a0e755e63bbaba867 Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Thu, 20 Jun 2024 20:19:34 -0700 Subject: [PATCH] Add files via upload --- NSLGameScanner.py | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/NSLGameScanner.py b/NSLGameScanner.py index 56aca47..3674dfe 100644 --- a/NSLGameScanner.py +++ b/NSLGameScanner.py @@ -164,9 +164,23 @@ def get_unsigned_shortcut_id(signed_shortcut_id): # Initialize an empty dictionary to serve as the cache api_cache = {} -#API KEYS FOR NONSTEAMLAUNCHER USE ONLY -sgdb = SteamGridDB('36e4bedbfdda27f42f9ef4a44f80955c') -api_key = '36e4bedbfdda27f42f9ef4a44f80955c' +#FOR NONSTEAMLAUNCHER USE ONLY +url = 'https://kvdb.io/V7iY1Ddg7FXJowFEMSnVDG/SGDDB' +headers = { + 'kvdb-read-key': 'QUsROHbBpJyusKrLQvZiBgBea6Su1Au0c304yTRncwm10P1PhByWPZ4M46GW1XEC' +} + +response = requests.get(url, headers=headers) + +if response.status_code == 200: + api_key = response.text + if api_key: + sgdb = SteamGridDB(api_key) + else: + print("Error: No data found.") +else: + print(f"Error: Unable to access. HTTP status code: {response.status_code}") + #GLOBAL VARS created_shortcuts = []