aboutsummaryrefslogtreecommitdiffstats
path: root/src/command.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/command.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/command.c b/src/command.c
index 9a7072c43..bf77dc8e7 100644
--- a/src/command.c
+++ b/src/command.c
@@ -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,