From 8c1b809b822b8f20207a69bc6331e94539556018 Mon Sep 17 00:00:00 2001 From: pjft Date: Sat, 12 Dec 2020 21:19:23 +0000 Subject: [PATCH] Creates necessary columns prior to first scan Prevents crash on first run. --- plex-ttp.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plex-ttp.js b/plex-ttp.js index 0d5e638..eade4bb 100644 --- a/plex-ttp.js +++ b/plex-ttp.js @@ -37,6 +37,11 @@ const evHandler = function () { function DoMainScan() { plex.init(); + + // add a column to bear datetime of TTP tag update and place update + plex.addColumnTTPUpdate(); + plex.addColumnPlaceUpdate(); + // read list des tags TTP existants plex.scanTTPTags(); @@ -46,9 +51,6 @@ function DoMainScan() { if (recs.length == 0) return; - // add a colum to bear datetime of TTP tag update - plex.addColumnTTPUpdate(); - function doTheUpdate(rec) { //console.log("doTheUpdate", rec.file); exifProcessing++; @@ -139,4 +141,4 @@ if (argv.d) { } if (argv.s) - DoMainScan(); \ No newline at end of file + DoMainScan();