Diffstat (limited to 'noncore/multimedia/opieplayer2/om3u.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/om3u.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/noncore/multimedia/opieplayer2/om3u.cpp b/noncore/multimedia/opieplayer2/om3u.cpp index d378145..c947033 100644 --- a/noncore/multimedia/opieplayer2/om3u.cpp +++ b/noncore/multimedia/opieplayer2/om3u.cpp | |||
@@ -50,3 +50,3 @@ | |||
50 | 50 | ||
51 | Om3u::Om3u( const QString &filePath) | 51 | Om3u::Om3u( const QString &filePath, int mode) |
52 | : QStringList (){ | 52 | : QStringList (){ |
@@ -55,6 +55,8 @@ Om3u::Om3u( const QString &filePath) | |||
55 | f.setName(filePath); | 55 | f.setName(filePath); |
56 | if(f.exists()) | 56 | // if(f.exists()) |
57 | f.open( IO_ReadWrite ); | 57 | // f.open( IO_ReadWrite); |
58 | else | 58 | // else |
59 | f.open( IO_ReadWrite | IO_Truncate); | 59 | // f.open( IO_ReadWrite | IO_Truncate); |
60 | f.open(mode); | ||
61 | |||
60 | } | 62 | } |
@@ -69,5 +71,4 @@ void Om3u::readM3u() { //it's m3u | |||
69 | s=t.readLine(); | 71 | s=t.readLine(); |
70 | 72 | // qDebug(s); | |
71 | if( s.find( "#", 0, TRUE) == -1 ) { | 73 | if( s.find( "#", 0, TRUE) == -1 ) { |
72 | if( s.find( " ", 0, TRUE) == -1 ) { | ||
73 | if( s.left(2) == "E:" || s.left(2) == "P:" ) { | 74 | if( s.left(2) == "E:" || s.left(2) == "P:" ) { |
@@ -94,3 +95,2 @@ void Om3u::readM3u() { //it's m3u | |||
94 | } | 95 | } |
95 | } | ||
96 | 96 | ||