diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-11-29 16:42:13 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-11-29 16:42:13 +0000 |
| commit | 035c624382bbc5e90c1868456c0c2b414e06edea (patch) | |
| tree | 35b19e18d506252c6132e05211ad7f9e827b179d /src/qmmpui | |
| parent | ac03388ed3aec8fecfad017b176485cf8234d587 (diff) | |
| download | qmmp-035c624382bbc5e90c1868456c0c2b414e06edea.tar.gz qmmp-035c624382bbc5e90c1868456c0c2b414e06edea.tar.bz2 qmmp-035c624382bbc5e90c1868456c0c2b414e06edea.zip | |
fixed template parsing (Closes issue 210)
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1411 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui')
| -rw-r--r-- | src/qmmpui/metadataformatter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qmmpui/metadataformatter.cpp b/src/qmmpui/metadataformatter.cpp index 9a055f4e9..dba32abd2 100644 --- a/src/qmmpui/metadataformatter.cpp +++ b/src/qmmpui/metadataformatter.cpp @@ -53,6 +53,7 @@ QString MetaDataFormatter::parse(const QMap<Qmmp::MetaData, QString> metaData) title.replace("\\)", "%29"); title.replace(")", "%)"); title.replace("&", "%&"); + title.replace(",", "%,"); title.replace("%p", metaData[Qmmp::ARTIST]); title.replace("%a", metaData[Qmmp::ALBUM]); title.replace("%t", metaData[Qmmp::TITLE]); @@ -78,7 +79,7 @@ QString MetaDataFormatter::processIfKeyWord(QString title) int pos = title.indexOf("%if("); int size = title.indexOf("%)",pos) - pos; - QStringList args = title.mid (pos + 4, size - 4).split(","); + QStringList args = title.mid (pos + 4, size - 4).split("%,"); if(args.count() < 3) { qWarning("TitleFormatter: invalid title format"); |
