fix escape characters, remove dupe line, add comment

This commit is contained in:
markwkidd 2016-11-15 09:03:55 -05:00 committed by GitHub
parent a9ead799e6
commit 06221da8a1

View File

@ -861,17 +861,19 @@ static void xmb_update_thumbnail_path(void *data, unsigned i)
fill_pathname_join(xmb->thumbnail_file_path, xmb->thumbnail_file_path,
xmb_thumbnails_ident(), sizeof(xmb->thumbnail_file_path));
/* Scrub characters that are not cross-platform safe from 'display name' in playlist and replace with underscore */
tmp = string_replace_substring(entry.path, "&", "_");
tmp = string_replace_substring(entry.path, "\", "_");
tmp = string_replace_substring(entry.path, "\\", "_");
tmp = string_replace_substring(entry.path, "/", "_");
tmp = string_replace_substring(entry.path, "?", "_");
tmp = string_replace_substring(entry.path, "\?", "_");
tmp = string_replace_substring(entry.path, ":", "_");
tmp = string_replace_substring(entry.path, "<", "_");
tmp = string_replace_substring(entry.path, ">", "_");
tmp = string_replace_substring(entry.path, ":", "_");
tmp = string_replace_substring(entry.path, "*", "_");
tmp = string_replace_substring(entry.path, "|", "_");
/* Look for thumbnail file with the scrubbed filename */
if (tmp)
{
char tmp_new[PATH_MAX_LENGTH];