From 9bdd208bbb16ec15d52653a9913789b44b3b28b3 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 2 May 2018 10:16:40 +0000 Subject: removed Qmmp::URL git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7943 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/playlistparser.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/qmmpui/playlistparser.cpp') diff --git a/src/qmmpui/playlistparser.cpp b/src/qmmpui/playlistparser.cpp index 3f72b4cbc..cb2f144ae 100644 --- a/src/qmmpui/playlistparser.cpp +++ b/src/qmmpui/playlistparser.cpp @@ -129,20 +129,20 @@ QList PlayListParser::loadPlaylist(const QString &f_name) return tracks; } - QString url; + QString path; foreach (PlayListTrack *t, tracks) { - url = t->value(Qmmp::URL); + path = t->path(); - if(url.contains("://")) + if(path.contains("://")) continue; - if(QFileInfo(url).isRelative()) - url.prepend(QFileInfo(f_name).canonicalPath () + "/"); + if(QFileInfo(path).isRelative()) + path.prepend(QFileInfo(f_name).canonicalPath () + "/"); - url.replace("\\","/"); - url.replace("//","/"); - t->setValue(Qmmp::URL, url); + path.replace("\\","/"); + path.replace("//","/"); + t->setPath(path); } return tracks; } -- cgit v1.2.3-13-gbd6f