Repository navigation
Fix getVersion discrepancy regex discrepancy - #145
HotaruBlaze wants to merge 1 commit into
Conversation
|
Instead of adding another regex, I wonder if it might make sense instead to use the official iTunes Search API instead of scraping the store page manually. We could search by bundle ID with e.g. https://itunes.apple.com/lookup?bundleId=com.nintendo.znca. As of writing, this returns a JSON response with similar: {
"resultCount": 1,
"results": [
{
// [...]
"bundleId": "com.nintendo.znca",
"releaseDate": "2017-07-19T00:57:14Z",
"version": "2.10.0",
}
]
}This would let us quickly adapt to new versions should their format change further beyond any numerical format. |
|
This may be worth looking into if we want to automate handling f-api version having to attempt a previous version on failureback, but for now, this was more of a "we know this works, so handle it" This is more of a hotfix imo, than swapping it out for another solution. this also concerns me a little but i agree its worth looking into, but for now, NSO-RPC crashes without this code, because the current regex's conflict with eachother, app.py's passes, the api one fails. |
|
Superseded by #147 |
Their was an issue where the multiple regex version checks drifted over time, and their was bad handling, triggering a version prompt incorrectly, this turned out to be because apple changed the html formatting again, as well as regex's being missed overtime
I've replaced all the regex checks with a single function to handle all 3 currently known possibilities of version check.