diff --git a/helpers/format.js b/helpers/format.js index e57a18f465..fd21a5948d 100644 --- a/helpers/format.js +++ b/helpers/format.js @@ -1,6 +1,7 @@ const util = require('./util') const debug = false +const parseEpg = process.env.npm_config_epg || false let stats = { total: 0, @@ -56,7 +57,7 @@ async function main() { } const epgUrl = playlist.attrs['x-tvg-url'] - if(epgUrl && !buffer[epgUrl]) { + if(epgUrl && !buffer[epgUrl] && parseEpg) { console.log(`Loading '${epgUrl}'...`) const epg = await util.loadEPG(epgUrl) console.log(`Adding '${epgUrl}' to buffer...`)