playlist/{m3u,pls}: removed URI checks
The caller is responsible for verifying the song URI.
This commit is contained in:
parent
a4970c66ef
commit
65e56ff829
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user