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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user