From 71f0b9f2918d6724fecec2591388c6af25f43e4a Mon Sep 17 00:00:00 2001 From: zoltanvb Date: Mon, 29 Jul 2024 08:04:27 +0200 Subject: [PATCH] Make individual thumbnail downloads obey filename match setting. --- tasks/task_pl_thumbnail_download.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/task_pl_thumbnail_download.c b/tasks/task_pl_thumbnail_download.c index 5124cc7e123..f76c0b769e8 100644 --- a/tasks/task_pl_thumbnail_download.c +++ b/tasks/task_pl_thumbnail_download.c @@ -892,6 +892,12 @@ bool task_push_pl_entry_thumbnail_download( /* Apply flexible thumbnail naming: ROM file name - database name - short name */ next_flag = playlist_get_next_thumbnail_name_flag(playlist,idx); playlist_update_thumbnail_name_flag(playlist, idx, next_flag); + /* Skip over full name if not enabled. */ + if (next_flag == PLAYLIST_THUMBNAIL_FLAG_FULL_NAME && !settings->bools.playlist_use_filename) + { + next_flag = playlist_get_next_thumbnail_name_flag(playlist,idx); + playlist_update_thumbnail_name_flag(playlist, idx, next_flag); + } if (next_flag == PLAYLIST_THUMBNAIL_FLAG_NONE) { runloop_msg_queue_push( msg_hash_to_str(MSG_NO_THUMBNAIL_DOWNLOAD_POSSIBLE),