author | llornkcor <llornkcor> | 2002-12-12 19:24:08 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-12-12 19:24:08 (UTC) |
commit | fa60d33a4c40ed6fc0bfb87a5366b276d65b98d8 (patch) (side-by-side diff) | |
tree | 96ea1742473b7526089f5f785a2ccff6373f13a4 /noncore/multimedia/opieplayer2/om3u.cpp | |
parent | 4789fc5908e0f6e5f828e1069b3fa5c7dad1412c (diff) | |
download | opie-fa60d33a4c40ed6fc0bfb87a5366b276d65b98d8.zip opie-fa60d33a4c40ed6fc0bfb87a5366b276d65b98d8.tar.gz opie-fa60d33a4c40ed6fc0bfb87a5366b276d65b98d8.tar.bz2 |
moved readM3u and readPls to one function. fixed pls. more to come
Diffstat (limited to 'noncore/multimedia/opieplayer2/om3u.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/om3u.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/om3u.cpp b/noncore/multimedia/opieplayer2/om3u.cpp index 235d973..841d950 100644 --- a/noncore/multimedia/opieplayer2/om3u.cpp +++ b/noncore/multimedia/opieplayer2/om3u.cpp @@ -94,7 +94,8 @@ void Om3u::readPls() { //it's a pls file while ( !t.atEnd() ) { s = t.readLine(); if( s.left(4) == "File" ) { - s = s.right( s.length() - 6 ); + s = s.right( s.length() - s.find("=",0,true)-1 ); + s = s.stripWhiteSpace(); s.replace( QRegExp( "%20" )," "); // qDebug( "adding " + s + " to playlist" ); // numberofentries=2 |