Updating the xbvr scraper#1333
Merged
feederbox826 merged 2 commits intostashapp:masterfrom Apr 25, 2025
Merged
Conversation
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
- update last updaded date since actual python code was updated
bnkai
reviewed
May 7, 2023
| 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) |
Collaborator
There was a problem hiding this comment.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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