diff --git a/tivo_commands.c b/tivo_commands.c index 4e4fe3c..5d3d253 100644 --- a/tivo_commands.c +++ b/tivo_commands.c @@ -116,7 +116,7 @@ SendFormats(struct upnphttp *h, const char *sformat) } static char * -unescape_tag(char *tag) +tivo_unescape_tag(char *tag) { modifyString(tag, "&amp;", "&"); modifyString(tag, "&amp;lt;", "<"); @@ -141,7 +141,7 @@ callback(void *args, int argc, char **argv, char **azColName) if( strncmp(class, "item", 4) == 0 ) { int flags = 0; - unescape_tag(title); + tivo_unescape_tag(title); if( strncmp(mime, "audio", 5) == 0 ) { flags |= FLAG_NO_PARAMS; @@ -208,15 +208,15 @@ callback(void *args, int argc, char **argv, char **azColName) { return 0; } - strcatf(str, "%s", unescape_tag(title)); + strcatf(str, "%s", tivo_unescape_tag(title)); if( artist ) { - strcatf(str, "%s", unescape_tag(artist)); + strcatf(str, "%s", tivo_unescape_tag(artist)); } if( album ) { - strcatf(str, "%s", unescape_tag(album)); + strcatf(str, "%s", tivo_unescape_tag(album)); } if( genre ) { - strcatf(str, "%s", unescape_tag(genre)); + strcatf(str, "%s", tivo_unescape_tag(genre)); } if( resolution ) { char *width = strsep(&resolution, "x"); @@ -277,7 +277,7 @@ callback(void *args, int argc, char **argv, char **azColName) "x-tivo-container/folder" "" "", - unescape_tag(title), count, id); + tivo_unescape_tag(title), count, id); } strcatf(str, "");