Skip to content

Updating the xbvr scraper#1333

Merged
feederbox826 merged 2 commits intostashapp:masterfrom
Tweeticoats:xbvr2
Apr 25, 2025
Merged

Updating the xbvr scraper#1333
feederbox826 merged 2 commits intostashapp:masterfrom
Tweeticoats:xbvr2

Conversation

@Tweeticoats
Copy link
Contributor

This version queries the xbvr api for matched scenes when XBVR_HOST is set to the ip and port of the instance. If XBVR_HOST=None it will query xbvr.db as before

This version queries the xbvr api for matched scenes when XBVR_HOST is set to the ip and port of the instance.
If XBVR_HOST=None it will query xbvr.db as before
@bnkai bnkai added enhancement New feature or request script Scraper executes a script labels May 7, 2023
- update last updaded date since actual python code was updated
if not path.exists("xbvr.db"):
def query_api(filename):
request_config={"dlState":"available","cardSize":"1","lists":[],"isAvailable":True,"isAccessible":True,"isHidden":False,"isWatched":None,"releaseMonth":"","cast":[],"sites":[],"tags":[],"cuepoint":[],"attributes":[],"volume":0,"sort":"release_desc","offset":0,"limit":1}
response = requests.post(XBVR_HOST+'/api/scene/list', json=request_config)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requests throws a lot of exceptions on dns, timeout, general connection errors. This shouldnt happen on same lan based hosts but doesnt hurt to avoid that with a try? Same for L85

@feederbox826 feederbox826 merged commit 2f1c529 into stashapp:master Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request script Scraper executes a script

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants