mirror of
https://github.com/BillyOutlast/metadata-scrapers.git
synced 2026-07-01 19:54:34 -04:00
Update SHALookup.py
Adjusted for new API
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user