]> Some of my projects - localmylist.git/commitdiff
mylist.xml: Add secondary lang/sub parsing
authorHector Martin <redacted>
Sat, 20 Sep 2025 13:52:40 +0000 (22:52 +0900)
committerAPTX <redacted>
Sat, 7 Mar 2026 05:57:01 +0000 (14:57 +0900)
localmylist/mylistexportparsetask.cpp

index 9f61a7a305b26f0858160405b62ed10772dbdb13..26892518cc02267f590c8a33ac68dc49187852c6 100644 (file)
@@ -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;