From 8ad34c268ce017d05e9f0f8461b98941877b27f1 Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Tue, 27 Jan 2009 14:44:12 +0100 Subject: [PATCH] Use gmpc's escape function --- src/plugin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugin.c b/src/plugin.c index 8e24e3c..cd1f90a 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -274,8 +274,8 @@ static int __fetch_metadata_amazon(mpd_Song *song, char *sfield, char *nartist, static int fetch_cover_art(mpd_Song *song,int type, char **url) { int retval=0; - gchar *artist = g_uri_escape_string(song->artist,NULL, TRUE); - gchar *album = g_uri_escape_string(song->album,NULL, TRUE); + gchar *artist = gmpc_easy_download_uri_escape(song->artist); + gchar *album = gmpc_easy_download_uri_escape(song->album); retval = __fetch_metadata_amazon(song, "Title",album, @@ -283,7 +283,7 @@ static int fetch_cover_art(mpd_Song *song,int type, char **url) type,url); if(!retval && song->performer) { - gchar *performer = g_uri_escape_string(song->performer, NULL, TRUE); + gchar *performer = gmpc_easy_download_uri_escape(song->performer); retval = __fetch_metadata_amazon( song, "Title",album, -- 2.11.4.GIT