Commit 65e56ff8 authored by Max Kellermann's avatar Max Kellermann

playlist/{m3u,pls}: removed URI checks

The caller is responsible for verifying the song URI.
parent a4970c66
...@@ -64,7 +64,7 @@ m3u_read(struct playlist_provider *_playlist) ...@@ -64,7 +64,7 @@ m3u_read(struct playlist_provider *_playlist)
while (*line != 0 && g_ascii_isspace(*line)) while (*line != 0 && g_ascii_isspace(*line))
++line; ++line;
} while (line[0] == '#' || !uri_has_scheme(line)); } while (line[0] == '#' || *line == 0);
return song_remote_new(line); return song_remote_new(line);
} }
......
...@@ -66,12 +66,6 @@ static void pls_parser(GKeyFile *keyfile, struct pls_playlist *playlist) ...@@ -66,12 +66,6 @@ static void pls_parser(GKeyFile *keyfile, struct pls_playlist *playlist)
} }
g_free(key); g_free(key);
/* Don't load local path */
if(!uri_has_scheme(value)){
g_free(value);
continue;
}
song = song_remote_new(value); song = song_remote_new(value);
g_free(value); g_free(value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment