playlist_list: use uri_get_suffix()
This commit is contained in:
parent
115d26608b
commit
032354e65c
@ -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];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user