summaryrefslogtreecommitdiffstats
path: root/kaffeine/src/player-parts/kaffeine-part/playlistimport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaffeine/src/player-parts/kaffeine-part/playlistimport.cpp')
-rw-r--r--kaffeine/src/player-parts/kaffeine-part/playlistimport.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kaffeine/src/player-parts/kaffeine-part/playlistimport.cpp b/kaffeine/src/player-parts/kaffeine-part/playlistimport.cpp
index 48b0eb8..afa0702 100644
--- a/kaffeine/src/player-parts/kaffeine-part/playlistimport.cpp
+++ b/kaffeine/src/player-parts/kaffeine-part/playlistimport.cpp
@@ -223,7 +223,7 @@ bool PlaylistImport::m3u(const TQString& playlist , TQValueList<MRL>& mrls)
continue;
}
}
- url.tqreplace ('\\', '/'); /* for windows styled urls */
+ url.replace ('\\', '/'); /* for windows styled urls */
kUrl = KURL (plurl, url); /* maybe a relative url */
if (kUrl.isValid())
{
@@ -296,12 +296,12 @@ bool PlaylistImport::pls(const TQString& playlist, TQValueList<MRL>& mrls)
continue;
}
- if (tmp.tqcontains(regExp_File)) {
+ if (tmp.contains(regExp_File)) {
entryCnt++;
continue;
}
- if (tmp.tqcontains(regExp_NumberOfEntries)) {
+ if (tmp.contains(regExp_NumberOfEntries)) {
numberOfEntries = TQString(tmp.section('=', -1)).stripWhiteSpace().toUInt();
continue;
}
@@ -341,7 +341,7 @@ bool PlaylistImport::pls(const TQString& playlist, TQValueList<MRL>& mrls)
inPlaylistSection = true;
continue;
}
- if ((*i).tqcontains(regExp_File)) {
+ if ((*i).contains(regExp_File)) {
// Have a "File#=XYZ" line.
index = extractIndex(*i);
if (index > numberOfEntries || index == 0)
@@ -349,7 +349,7 @@ bool PlaylistImport::pls(const TQString& playlist, TQValueList<MRL>& mrls)
files[index-1] = TQString((*i).section('=', 1)).stripWhiteSpace();
continue;
}
- if ((*i).tqcontains(regExp_Title)) {
+ if ((*i).contains(regExp_Title)) {
// Have a "Title#=XYZ" line.
index = extractIndex(*i);
if (index > numberOfEntries || index == 0)
@@ -357,7 +357,7 @@ bool PlaylistImport::pls(const TQString& playlist, TQValueList<MRL>& mrls)
titles[index-1] = TQString((*i).section('=', 1)).stripWhiteSpace();
continue;
}
- if ((*i).tqcontains(regExp_Length)) {
+ if ((*i).contains(regExp_Length)) {
// Have a "Length#=XYZ" line.
index = extractIndex(*i);
if (index > numberOfEntries || index == 0)
@@ -368,11 +368,11 @@ bool PlaylistImport::pls(const TQString& playlist, TQValueList<MRL>& mrls)
length[index-1] = TQTime().addSecs(time);
continue;
}
- if ((*i).tqcontains(regExp_NumberOfEntries)) {
+ if ((*i).contains(regExp_NumberOfEntries)) {
// Have the "NumberOfEntries=#" line.
continue;
}
- if ((*i).tqcontains(regExp_Version)) {
+ if ((*i).contains(regExp_Version)) {
// Have the "Version=#" line.
tmp = TQString((*i).section('=', 1)).stripWhiteSpace();
// We only support Version=2