summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-11-10 15:09:20 (UTC)
committer llornkcor <llornkcor>2002-11-10 15:09:20 (UTC)
commit521b993fb4175e699e9ac832c50558af0354ca25 (patch) (side-by-side diff)
tree6fb96873b159861b062c075d3aa0dbe4eedaeeef
parent91932ca42cee5568477b1e49532a0b9e4d9bcf96 (diff)
downloadopie-521b993fb4175e699e9ac832c50558af0354ca25.zip
opie-521b993fb4175e699e9ac832c50558af0354ca25.tar.gz
opie-521b993fb4175e699e9ac832c50558af0354ca25.tar.bz2
no extras for urls
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/om3u.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/multimedia/opieplayer2/om3u.cpp b/noncore/multimedia/opieplayer2/om3u.cpp
index 039f3b1..12fb16e 100644
--- a/noncore/multimedia/opieplayer2/om3u.cpp
+++ b/noncore/multimedia/opieplayer2/om3u.cpp
@@ -41,25 +41,25 @@
#include <qdir.h>
#include <qregexp.h>
#include <qstring.h>
#include <qtextstream.h>
#include <qstringlist.h>
#include <qcstring.h>
//extern PlayListWidget *playList;
Om3u::Om3u( const QString &filePath, int mode)
: QStringList (){
-//qDebug("<<<<<<<new m3u "+filePath);
+qDebug("<<<<<<<new m3u "+filePath);
f.setName(filePath);
f.open(mode);
}
Om3u::~Om3u(){}
void Om3u::readM3u() {
// qDebug("<<<<<<reading m3u "+f.name());
QTextStream t(&f);
QString s;
while ( !t.atEnd() ) {
s=t.readLine();
@@ -106,27 +106,27 @@ void Om3u::readPls() { //it's a pls file
s = s.replace( QRegExp( "\\" ), "/" );
QFileInfo f( s );
QString name = f.baseName();
if( name.left( 4 ) == "http" ) {
name = s.right( s.length() - 7);
} else {
name = s;
}
name = name.right( name.length() - name.findRev( "\\", -1, TRUE) - 1 );
if( s.at( s.length() - 4) == '.') // if this is probably a file
append(s);
else { //if its a url
- if( name.right( 1 ).find( '/' ) == -1) {
- s += "/";
- }
+// if( name.right( 1 ).find( '/' ) == -1) {
+// s += "/";
+// }
append(s);
}
}
}
}
void Om3u::write() { //writes list to m3u file
QString list;
if(count()>0) {
for ( QStringList::ConstIterator it = begin(); it != end(); ++it ) {
qDebug(*it);
list += *it+"\n";