@tricoteuses/senat 2.18.9 → 2.18.10
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.
|
@@ -10,7 +10,7 @@ import { commonOptions } from "./shared/cli_helpers";
|
|
|
10
10
|
import { decodeHtmlEntities } from "../model/util";
|
|
11
11
|
import { DateTime } from "luxon";
|
|
12
12
|
// ===================== Constants =====================
|
|
13
|
-
const MATCH_THRESHOLD = 0.
|
|
13
|
+
const MATCH_THRESHOLD = 0.5;
|
|
14
14
|
const MAX_CANDIDATES = 15;
|
|
15
15
|
const STATS = { total: 0, accepted: 0 };
|
|
16
16
|
const VIDEOS_ROOT_FOLDER = "videos";
|
|
@@ -328,7 +328,7 @@ async function processGroupedReunion(agenda, session, dataDir) {
|
|
|
328
328
|
const finalMeta = parseFinalNvs(finalBuf.toString("utf-8"));
|
|
329
329
|
sessionStart = finalMeta.sessionStart;
|
|
330
330
|
}
|
|
331
|
-
const videoEpoch =
|
|
331
|
+
const videoEpoch = meta.epoch ?? sessionStart;
|
|
332
332
|
let sameOrg = false;
|
|
333
333
|
// If organes are too different, go to next candidates
|
|
334
334
|
if (agenda.organe && meta.organes?.length) {
|
|
@@ -349,7 +349,7 @@ async function processGroupedReunion(agenda, session, dataDir) {
|
|
|
349
349
|
if (hasSameKey) {
|
|
350
350
|
sameOrg = true; // we are sure this is the same org
|
|
351
351
|
}
|
|
352
|
-
else if (bestDice < 0.
|
|
352
|
+
else if (bestDice < 0.8) {
|
|
353
353
|
// if diff org and dice too low we skip
|
|
354
354
|
continue;
|
|
355
355
|
}
|