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);
|
assert(uri != NULL);
|
||||||
|
|
||||||
suffix = strrchr(uri, '.');
|
suffix = uri_get_suffix(uri);
|
||||||
if (suffix == NULL || strchr(suffix, '/') != NULL)
|
if (suffix == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
++suffix;
|
|
||||||
|
|
||||||
for (unsigned i = 0; playlist_plugins[i] != NULL; ++i) {
|
for (unsigned i = 0; playlist_plugins[i] != NULL; ++i) {
|
||||||
const struct playlist_plugin *plugin = playlist_plugins[i];
|
const struct playlist_plugin *plugin = playlist_plugins[i];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user