@tricoteuses/senat 3.1.19 → 3.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -42,7 +42,11 @@ function shouldSkipDownload(agenda, baseDir) {
|
|
|
42
42
|
const cutoff = now - options["only-recent"] * 24 * 3600 * 1000;
|
|
43
43
|
const reunionTs = Date.parse(agenda.date);
|
|
44
44
|
if (reunionTs >= cutoff)
|
|
45
|
-
return false;
|
|
45
|
+
return false; // recent: always try
|
|
46
|
+
// Old meeting with no captation: will never match (minAccept=0.9), skip
|
|
47
|
+
if (!agenda.captationVideo)
|
|
48
|
+
return true;
|
|
49
|
+
// Old meeting with captation: skip only if already downloaded
|
|
46
50
|
const dataNvsPath = path.join(baseDir, "data.nvs");
|
|
47
51
|
const finalplayerNvsPath = path.join(baseDir, "finalplayer.nvs");
|
|
48
52
|
return fs.existsSync(dataNvsPath) && fs.existsSync(finalplayerNvsPath);
|