From 2002d4dfc64ed0cdf9878a800f7992ed3f089cc6 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Wed, 22 Dec 2010 17:43:04 +0100 Subject: [PATCH] allow loading .pls playlists from mpd music dir, not only playlists dir --- src/ncmpcpp.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ncmpcpp.cpp b/src/ncmpcpp.cpp index 43ba7aa9..2eba855b 100644 --- a/src/ncmpcpp.cpp +++ b/src/ncmpcpp.cpp @@ -1270,9 +1270,7 @@ int main(int argc, char *argv[]) { static const char lastfm_url[] = "lastfm://"; 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); else Mpd.Add(path);