diff options
| -rw-r--r-- | src/plugins/PlayListFormats/m3u/m3uplaylistformat.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/PlayListFormats/m3u/m3uplaylistformat.cpp b/src/plugins/PlayListFormats/m3u/m3uplaylistformat.cpp index dbcd2aa8d..6239f5e9e 100644 --- a/src/plugins/PlayListFormats/m3u/m3uplaylistformat.cpp +++ b/src/plugins/PlayListFormats/m3u/m3uplaylistformat.cpp @@ -40,6 +40,7 @@ QList<PlayListTrack *> M3UPlaylistFormat::decode(const QByteArray &contents) return out; QRegExp extInfRegExp("#EXTINF:(-{0,1}\\d+),(.*) - (.*)"); + QRegExp extInfRegExp2("#EXTINF:(-{0,1}\\d+),(.*)"); int length = 0; QString artist, title; bool hasExtInf = false; @@ -57,6 +58,12 @@ QList<PlayListTrack *> M3UPlaylistFormat::decode(const QByteArray &contents) title = extInfRegExp.cap(3); hasExtInf = true; } + else if(extInfRegExp2.indexIn(str) > -1) + { + length = extInfRegExp.cap(1).toInt(); + title = extInfRegExp.cap(2); + hasExtInf = true; + } if(str.startsWith("#")) continue; |
