allow loading .pls playlists from mpd music dir, not only playlists dir
This commit is contained in:
@@ -1270,9 +1270,7 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
static const char lastfm_url[] = "lastfm://";
|
static const char lastfm_url[] = "lastfm://";
|
||||||
if (path.compare(0, static_strlen(lastfm_url), lastfm_url) == 0
|
if (path.compare(0, static_strlen(lastfm_url), lastfm_url) == 0
|
||||||
|| (path.find('/') == std::string::npos
|
|| path.find(".pls", path.length()-4) != std::string::npos)
|
||||||
&& path.find(".pls", path.length()-4) != std::string::npos)
|
|
||||||
)
|
|
||||||
Mpd.LoadPlaylist(path);
|
Mpd.LoadPlaylist(path);
|
||||||
else
|
else
|
||||||
Mpd.Add(path);
|
Mpd.Add(path);
|
||||||
|
|||||||
Reference in New Issue
Block a user