aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/playlist_list.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/playlist_list.c b/src/playlist_list.c
index a17762911..540810654 100644
--- a/src/playlist_list.c
+++ b/src/playlist_list.c
@@ -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];