diff --git a/bin/epg-grabber/index.js b/bin/epg-grabber/index.js index 839e7b5a..e341b779 100755 --- a/bin/epg-grabber/index.js +++ b/bin/epg-grabber/index.js @@ -50,7 +50,7 @@ async function main() { return programs }) - .then(utils.sleep(3000)) + .then(utils.sleep(config.delay)) .catch(console.log) programs = programs.concat(progs) diff --git a/bin/epg-grabber/utils.js b/bin/epg-grabber/utils.js index e1b99df0..2acdfc9c 100644 --- a/bin/epg-grabber/utils.js +++ b/bin/epg-grabber/utils.js @@ -30,7 +30,8 @@ utils.loadConfig = function (file) { days: 1, cookie: '', lang: 'en', - channels: channelsPath + channels: channelsPath, + delay: 3000 }, config )