Update SHALookup.py

Adjusted for new API
This commit is contained in:
Shadchamp
2025-08-16 23:18:19 -04:00
committed by GitHub
parent e9b4c3d814
commit 0de501ec54
+1
View File
@@ -85,6 +85,7 @@ stash = StashInterface(stashconfig)
# get post
def getPostByHash(hash):
for _ in range(1, 5):
session.headers.update({'Accept': 'text/css'})
shares = session.get(f'{API_BASE}search_hash/{hash}', timeout=10)
if shares.status_code == 200:
break