Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating the xbvr scraper #1333

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

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

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.

2 participants