mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-11-20 16:19:19 +01:00
Update NSLGameScanner.py
This commit is contained in:
parent
b482423e47
commit
f98e5c5e80
@ -164,23 +164,9 @@ def get_unsigned_shortcut_id(signed_shortcut_id):
|
|||||||
# Initialize an empty dictionary to serve as the cache
|
# Initialize an empty dictionary to serve as the cache
|
||||||
api_cache = {}
|
api_cache = {}
|
||||||
|
|
||||||
#FOR NONSTEAMLAUNCHER USE ONLY
|
#API KEYS FOR NONSTEAMLAUNCHER USE ONLY
|
||||||
url = 'https://kvdb.io/V7iY1Ddg7FXJowFEMSnVDG/SGDDB'
|
sgdb = SteamGridDB('36e4bedbfdda27f42f9ef4a44f80955c')
|
||||||
headers = {
|
api_key = '36e4bedbfdda27f42f9ef4a44f80955c'
|
||||||
'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
|
#GLOBAL VARS
|
||||||
created_shortcuts = []
|
created_shortcuts = []
|
||||||
|
Loading…
Reference in New Issue
Block a user