From ce95dcaf79afbb873d4448b1569ade1462e4c945 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 8 Jun 2020 07:31:58 +0200 Subject: [PATCH] (task_pl_thumbnail_download) Some string_is__equal optimizations --- tasks/task_pl_thumbnail_download.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tasks/task_pl_thumbnail_download.c b/tasks/task_pl_thumbnail_download.c index 456e127f0f..ae2b12359a 100644 --- a/tasks/task_pl_thumbnail_download.c +++ b/tasks/task_pl_thumbnail_download.c @@ -798,14 +798,12 @@ bool task_push_pl_entry_thumbnail_download( goto error; /* Only parse supported playlist types */ - if (string_is_equal(system, "images_history") || - string_is_equal(system, "music_history") || - string_is_equal(system, "video_history")) + if (string_ends_with(system, "_history")) goto error; /* Copy playlist path * (required for task finder and menu refresh functionality) */ - playlist_path = strdup(playlist_get_conf_path(playlist)); + playlist_path = strdup(playlist_get_conf_path(playlist)); /* Concurrent download of thumbnails for the same * playlist entry is not allowed */