aboutsummaryrefslogtreecommitdiffstats
path: root/src/ls.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ls.c b/src/ls.c
index 11c69ec37..1b5c36015 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -44,7 +44,6 @@ char * dupAndStripPlaylistSuffix(char * file) {
int isRemoteUrl(char * url) {
char * prefixes[] = {
"http://",
- "ftp://",
NULL
};
@@ -53,12 +52,12 @@ int isRemoteUrl(char * url) {
while(*urlPrefixes) {
if(strncmp(*urlPrefixes,url,strlen(*urlPrefixes)) == 0) {
#ifdef HAVE_MAD
- if(hasMp3Suffix(*urlPrefixes)) return 1;
+ if(hasMp3Suffix(url)) return 1;
#endif
#ifdef HAVE_OGG
- if(hasOggSuffix(*urlPrefixes)) return 1;
- return 0;
+ if(hasOggSuffix(url)) return 1;
#endif
+ return 0;
}
urlPrefixes++;
}