From c31bfb4dc8507f25d76f59a6958c11d5253bc745 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 8 Jun 2020 21:20:07 +0200 Subject: [PATCH] (task_pl_thumbnail_download) Simplifications --- tasks/task_pl_thumbnail_download.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tasks/task_pl_thumbnail_download.c b/tasks/task_pl_thumbnail_download.c index ae2b12359a..46ca81d9c4 100644 --- a/tasks/task_pl_thumbnail_download.c +++ b/tasks/task_pl_thumbnail_download.c @@ -491,14 +491,12 @@ bool task_push_pl_thumbnail_download( goto error; /* Only parse supported playlist types */ - if (string_is_equal(playlist_file, file_path_str(FILE_PATH_CONTENT_HISTORY)) || - string_is_equal(playlist_file, file_path_str(FILE_PATH_CONTENT_FAVORITES)) || - string_is_equal(playlist_file, file_path_str(FILE_PATH_CONTENT_MUSIC_HISTORY)) || - string_is_equal(playlist_file, file_path_str(FILE_PATH_CONTENT_VIDEO_HISTORY)) || - string_is_equal(playlist_file, file_path_str(FILE_PATH_CONTENT_IMAGE_HISTORY)) || - string_is_equal(system, "history") || - string_is_equal(system, "favorites") || - string_is_equal(system, "images_history")) + if ( + string_ends_with(playlist_path, "_history.lpl") + || string_is_equal(playlist_file, + file_path_str(FILE_PATH_CONTENT_FAVORITES)) + || string_is_equal(system, "history") + || string_is_equal(system, "favorites")) goto error; /* Concurrent download of thumbnails for the same