playlist/{m3u,pls}: removed URI checks

The caller is responsible for verifying the song URI.
This commit is contained in:
Max Kellermann 2009-11-06 00:36:32 +01:00
parent a4970c66ef
commit 65e56ff829
2 changed files with 1 additions and 7 deletions

View File

@ -64,7 +64,7 @@ m3u_read(struct playlist_provider *_playlist)
while (*line != 0 && g_ascii_isspace(*line))
++line;
} while (line[0] == '#' || !uri_has_scheme(line));
} while (line[0] == '#' || *line == 0);
return song_remote_new(line);
}

View File

@ -66,12 +66,6 @@ static void pls_parser(GKeyFile *keyfile, struct pls_playlist *playlist)
}
g_free(key);
/* Don't load local path */
if(!uri_has_scheme(value)){
g_free(value);
continue;
}
song = song_remote_new(value);
g_free(value);