-
Notifications
You must be signed in to change notification settings - Fork 19
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
Fallback to thread versions if dedicated API returns N/A #106
Comments
As you may know, somewhere in it's lifetime F95Checker switched from retrieving the threads during a Fast Refresh to a dedicated API made by the site admin. Which means that the only time the actual thread page itself will be retrieved is, as you noticed, during a full check, so that the first post can be parsed for information. @Willy-JL will be able to explain what the deal with the version is. Since those two and a few other mods I tried, didn't turn up in the data from the API call, That it even is able to detect if a mod is updated is because there is at least one item on each thread page which is consistent with every post, and that is the |
I think there is more to this than just the API Most mods use the Syntax of
Although some of them just say
the same way a normal game does.
I think that: A. the full recheck should have two fallbacks for version. B. The above does not explain why standalone mods who only present C. if a thread is not found via the API. perform a full recheck for that thread only. probably with its own separate timeout that checks less often than the API refreshes. D. if the API is specifically excluding all threads tagged with MOD. then a mod updater module should check those threads separately using full refresh |
it does not parse the thread for version numbers at all. the point of the new api sam (site admin) made is that we dont need to fetch the threads, since that creates a lot of overhead on their servers. instead, he made a dedicated api using a much faster redis instance rather than going through the main forum, that only serves version info. before, it was a clusterfuck with all the threads formatting slightly differently, because even if to you it looks like just "Version: 1.2.3" there is spacing, formatting, bold, and all the HTML retardedness preventing correct parsing. since this api is now a highly reliable source for a correct and stable version field, it relies on this to decide when to run full rechecks. but as you saw, some threads dont have this info, or they change other details when the version doesnt (say downloads, image, tags...), so it does full rechecks every once in a while anyway. making it parse versions from the thread too in case it doesnt come from the dedicated api is an option, but i will not make it fetch always for things that dont get served by the dedicated api. making it do a full refresh more often for things not served by the dedicated api might be an option, depending on how much of the code would need to be reworked. |
that should cover most of them |
Just to clarify, I was not talking about the API there. |
It does, but where before it just set the version to |
I've added games as well as mods, but for the mods I never get a version number and they only seem to update when I trigger a full recheck.
examples:
The text was updated successfully, but these errors were encountered: