From 110cbc795a31ca4a05a96eacc3e92d8f763cf79c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 8 Sep 2015 19:24:23 +0200 Subject: [PATCH] Skip content_history entry if playlist dir is set in a directory where content_history.lpl is located --- menu/menu_displaylist.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index f964f82997..a12887a03b 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -1681,6 +1681,15 @@ static int menu_displaylist_parse_horizontal_list(menu_displaylist_info_t *info) strlcpy(lpl_basename, item->path, sizeof(lpl_basename)); path_remove_extension(lpl_basename); + if (!strcmp(lpl_basename, "content_history")) + { + menu_list_push(info->list, + menu_hash_to_str(MENU_LABEL_VALUE_NO_PLAYLIST_ENTRIES_AVAILABLE), + menu_hash_to_str(MENU_LABEL_NO_PLAYLIST_ENTRIES_AVAILABLE), + 0, 0, 0); + return 0; + } + if (menu->playlist) content_playlist_free(menu->playlist);