From bf60a6a35c7a4227f923d46d955db4911eb82a2f Mon Sep 17 00:00:00 2001 From: Austin Date: Mon, 18 May 2020 22:21:09 -0700 Subject: [PATCH] print version at start Adding version on startup as per #4 --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 0e853a2..61a63a4 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,5 @@ +var pseudotvVersion = "0.5.1"; + const db = require('diskdb') const fs = require('fs') const path = require('path') @@ -11,6 +13,8 @@ const HDHR = require('./src/hdhr') const xmltv = require('./src/xmltv') const Plex = require('./src/plex') +console.log("PseudoTV Version: " + pseudotvVersion) + for (let i = 0, l = process.argv.length; i < l; i++) { if ((process.argv[i] === "-p" || process.argv[i] === "--port") && i + 1 !== l) process.env.PORT = process.argv[i + 1]