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

Flexible thumbnail improvements. #16082

Merged
merged 1 commit into from
Jan 7, 2024

Conversation

zoltanvb
Copy link
Contributor

@zoltanvb zoltanvb commented Jan 6, 2024

Description

Some improvements to flexible thumbnail naming, as a result of discussion under #16071

  • Move flag logic to task_push_pl_entry_thumbnail_download - this enables individual "download thumbnails" entry to be also flexible
  • Add a message when this download from the menu has been tried enough times (i.e. 3)
  • Optimize cases when full or short name is the same as standard name, skip queries if so (both download and local file)

And done more testing to ensure that mix&match combinations and optimizations work as they should. Some notes on the testing environment, if anyone wants to replicate it:

  • crafted a playlist with a mix of names
  • generated fake thumbnail PNGs with text so that it can be immediately identified which one is loaded
  • set up a local thumbnail server (as easy as python3 -m http.server ) and change URL in file_path_special.h to http://127.0.0.1:8000
  • remove local thumbnail directory for Sinclair - ZX Spectrum, start RA, do the thumbnail download options (playlist thumbnail download, on-demand download, download from menu entry) and see if all thumbnails appear, note, there are some entries deliberately left as missing
    thumbnail_testpack.zip

Related Issues

As I realized now, thumbnail display / downloading from the Qt UI is unchanged - it is fully separate codepath.

Related Pull Requests

#16040

- Move flag logic to task_push_pl_entry_thumbnail_download - this
enables individual "download thumbnails" entry to be also flexible
- Add a message when this download has been tried enough times
(i.e. 3)
- Optimize cases when full or short name is the same as standard
name, skip queries if so (both download and local file)
@LibretroAdmin LibretroAdmin merged commit 1e58df4 into libretro:master Jan 7, 2024
23 checks passed
@zoltanvb zoltanvb deleted the thumbnail_optimization branch January 20, 2024 15:43
Sunderland93 pushed a commit to Sunderland93/RetroArch that referenced this pull request Dec 26, 2024
- Move flag logic to task_push_pl_entry_thumbnail_download - this
enables individual "download thumbnails" entry to be also flexible
- Add a message when this download has been tried enough times
(i.e. 3)
- Optimize cases when full or short name is the same as standard
name, skip queries if so (both download and local file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants