Commit 032354e6 authored by Max Kellermann's avatar Max Kellermann

playlist_list: use uri_get_suffix()

parent 115d2660
......@@ -160,12 +160,10 @@ playlist_list_open_uri_suffix(const char *uri, const bool *tried)
assert(uri != NULL);
suffix = strrchr(uri, '.');
if (suffix == NULL || strchr(suffix, '/') != NULL)
suffix = uri_get_suffix(uri);
if (suffix == NULL)
return NULL;
++suffix;
for (unsigned i = 0; playlist_plugins[i] != NULL; ++i) {
const struct playlist_plugin *plugin = playlist_plugins[i];
......
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