redimentary addition of url's to playlist

git-svn-id: https://svn.musicpd.org/mpd/trunk@1000 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
Warren Dukes
2004-05-13 18:46:38 +00:00
parent 8c484eeccf
commit 965e6edcf1
7 changed files with 56 additions and 12 deletions

View File

@@ -237,10 +237,13 @@ int handleClose(FILE * fp, unsigned int * permission, int argArrayLength,
int handleAdd(FILE * fp, unsigned int * permission, int argArrayLength,
char ** argArray)
{
char * directory = NULL;
char * path = NULL;
if(argArrayLength == 2) directory = argArray[1];
return addAllIn(fp,directory);
if(argArrayLength == 2) {
path = argArray[1];
if(isRemoteUrl(path)) return addToPlaylist(fp,path);
}
return addAllIn(fp,path);
}
int handleDelete(FILE * fp, unsigned int * permission, int argArrayLength,