changeset 2505:c12b8c696aba

Download RDF "pack" information (it isn't used yet though)
author Chris Cannam
date Fri, 17 Apr 2020 17:46:23 +0100
parents 41de68976db8
children 64d605b087f0
files main/main.cpp repoint-lock.json
diffstat 2 files changed, 18 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/main/main.cpp	Fri Apr 17 17:46:09 2020 +0100
+++ b/main/main.cpp	Fri Apr 17 17:46:23 2020 +0100
@@ -365,11 +365,24 @@
     settings.endGroup();
 
     settings.beginGroup("RDF");
-    if (!settings.contains("rdf-indices")) {
-        QStringList list;
-        list << "http://www.vamp-plugins.org/rdf/plugins/index.txt";
-        settings.setValue("rdf-indices", list);
+    QStringList list;
+    bool absent = !(settings.contains("rdf-indices"));
+    QString plugIndex("http://www.vamp-plugins.org/rdf/plugins/index.txt");
+    QString packsIndex("http://www.vamp-plugins.org/rdf/packs/index.txt");
+    if (absent) {
+        list << plugIndex;
+        list << packsIndex;
+    } else {
+        list = settings.value("rdf-indices").toStringList();
+        if (!settings.contains("rdf-indices-refreshed-for-4.1")) {
+            // Packs introduced
+            if (!list.contains(packsIndex)) {
+                list << packsIndex;
+            }
+            settings.setValue("rdf-indices-refreshed-for-4.1", true);
+        }
     }
+    settings.setValue("rdf-indices", list);
     settings.endGroup();
 
     PluginPathSetter::initialiseEnvironmentVariables();
--- a/repoint-lock.json	Fri Apr 17 17:46:09 2020 +0100
+++ b/repoint-lock.json	Fri Apr 17 17:46:23 2020 +0100
@@ -4,7 +4,7 @@
       "pin": "74c5b0bfa108"
     },
     "svcore": {
-      "pin": "627a7d7ada45"
+      "pin": "3ec563af0a4f"
     },
     "svgui": {
       "pin": "7eb595837eaa"