diff options
author | Max Kellermann <max@musicpd.org> | 2019-04-18 10:03:15 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-04-18 10:03:15 +0200 |
commit | ead3dc6a92b7631e65ccd4df8e514e8b431c71c6 (patch) | |
tree | 54424dde8dfeaf0cd379259c126ce3246e43187b /src/SongLoader.cxx | |
parent | 7d814cc899111583c9ddfc3aa17d38f8a15796e0 (diff) |
LocateUri: pass URI plugin kind, optionally disables plugin verify
Commit b3a458338a7c8ff3c230ee33d85e973d3dbc056a added a LocateUri()
call to several playlist commands, which applied InputPlugin URI
scheme verification to playlist URIs. This broke the SoundCloud
playlist plugin which uses "soundcloud://" URIs for which no input
plugin exists.
This commit allows the caller to specify the kind of plugin which
shall be used to verify the URI. Right now, only "input" is
implemented; "storage" uses the "input" verification for now; and
"playlist" has no verification at all (for now).
Closes https://github.com/MusicPlayerDaemon/MPD/issues/528
Diffstat (limited to 'src/SongLoader.cxx')
-rw-r--r-- | src/SongLoader.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SongLoader.cxx b/src/SongLoader.cxx index ad96ecfec..fee94f8b3 100644 --- a/src/SongLoader.cxx +++ b/src/SongLoader.cxx @@ -94,7 +94,8 @@ SongLoader::LoadSong(const char *uri_utf8) const assert(uri_utf8 != nullptr); #endif - const auto located_uri = LocateUri(uri_utf8, client + const auto located_uri = LocateUri(UriPluginKind::INPUT, + uri_utf8, client #ifdef ENABLE_DATABASE , storage #endif |