ls: added uri_has_scheme()
uri_has_scheme() checks if an URI contains the sub string "://", which makes MPD assume that it is a remote URI.
This commit is contained in:
parent
e0be4400cf
commit
c50115f9a2
4
src/ls.c
4
src/ls.c
@ -42,6 +42,10 @@ void printRemoteUrlHandlers(struct client *client)
|
||||
}
|
||||
}
|
||||
|
||||
bool uri_has_scheme(const char *uri)
|
||||
{
|
||||
return strstr(uri, "://") != NULL;
|
||||
}
|
||||
|
||||
bool isRemoteUrl(const char *url)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user