Skip to content

Commit

Permalink
print version at start
Browse files Browse the repository at this point in the history
Adding version on startup as per #4
  • Loading branch information
Austin committed May 19, 2020
1 parent 917022f commit bf60a6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
var pseudotvVersion = "0.5.1";

const db = require('diskdb')
const fs = require('fs')
const path = require('path')
Expand All @@ -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]
Expand Down

0 comments on commit bf60a6a

Please sign in to comment.