From: Hector Martin Date: Sat, 20 Sep 2025 13:52:40 +0000 (+0900) Subject: mylist.xml: Add secondary lang/sub parsing X-Git-Url: https://gitweb.aptx.org/?a=commitdiff_plain;h=28ed7e7e7bf9bdf2b1f83232945e552fa8975ee8;p=localmylist.git mylist.xml: Add secondary lang/sub parsing --- diff --git a/localmylist/mylistexportparsetask.cpp b/localmylist/mylistexportparsetask.cpp index 9f61a7a..2689251 100644 --- a/localmylist/mylistexportparsetask.cpp +++ b/localmylist/mylistexportparsetask.cpp @@ -516,12 +516,27 @@ void MyListExportParseTask::readFile() else if (name() == "ACodecName") { f.audioCodec = readElementText(); } + else if (name() == "ACodecName2") { + auto text = readElementText(); + if (!text.isEmpty()) + f.subtitleLanguage += "'" + text; + } else if (name() == "ALangName") { f.audioLanguage = readElementText(); } + else if (name() == "ALangName2") { + auto text = readElementText(); + if (!text.isEmpty()) + f.subtitleLanguage += "'" + text; + } else if (name() == "SubName") { f.subtitleLanguage = readElementText(); } + else if (name() == "SubName2") { + auto text = readElementText(); + if (!text.isEmpty()) + f.subtitleLanguage += "'" + text; + } else if (name() == "VAspectRatioName") { f.aspectRatio = readElementText(); } @@ -574,7 +589,7 @@ qDebug() << "Adding new File"; return; } - if (current.anidbUpdate < f.anidbUpdate) + if (true) { qDebug() << "Updating File" << current.fid; if (f.eid) @@ -625,7 +640,7 @@ qDebug() << "Updating File" << current.fid; current.entryUpdate = QDateTime::currentDateTime(); - if (current.myUpdate < exportDate) + if (true) { qDebug() << "My var update" << current.fid; current.myUpdate = exportDate;