aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/playlist.c')
-rw-r--r--src/playlist.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/playlist.c b/src/playlist.c
index ba5b5150c..cb9314661 100644
--- a/src/playlist.c
+++ b/src/playlist.c
@@ -471,10 +471,13 @@ int addToPlaylist(FILE * fp, char * url) {
if((song = getSongFromDB(url))) {
}
- else if(isRemoteUrl(url) && (song = newSong(url,SONG_TYPE_URL))) {
+ else if(isValidRemoteUtf8Url(url) &&
+ (song = newSong(url,SONG_TYPE_URL)))
+ {
}
else {
- myfprintf(fp,"%s \"%s\" is not in the music db\n",
+ myfprintf(fp,"%s \"%s\" is not in the music db or is"
+ "not a valid url\n",
COMMAND_RESPOND_ERROR,url);
return -1;
}