Index file for thumbnails (do not merge yet) #17521
Draft
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.
Do not merge yet - 2 tasks need to be done and at least a few index files should be present for this to make sense.
Description
Add the function to retrieve an
.index-extended
file for thumbnail repositories, similar to core updater. Use the list to determine if the download should be attempted or not. For now, fall back to previous method if index can not be retrieved.Currently, this PR would bring no immediate benefits, as there are no
.index-extended
files in thumbnail repos. I have opened a PR to get one: libretro-thumbnails/Sinclair_-_ZX_Spectrum#14 . Either that workflow needs to be added to all thumbnail repos (copy-paste, just a lot of it), or index files can be generated centrally, but that may take a toll on the server if it is not done smartly (i.e. changed files only). Generating a new index file for the ZX Spectrum repo takes ~40 min.Benefits if index files are populated:
There may be also drawbacks:
This can also pave the way for a few improvements (not included to current code):
TODOs in any case: