Skip content_history entry if playlist dir is set in a directory

where content_history.lpl is located
This commit is contained in:
twinaphex 2015-09-08 19:24:23 +02:00
parent 23b98bf689
commit 110cbc795a

View File

@ -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);