From 7f2c5b36c975d0cb7c6473c5369076e43e1293c0 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 16 Sep 2021 03:53:06 +0300 Subject: [PATCH] Create epg.js --- scripts/helpers/epg.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 scripts/helpers/epg.js diff --git a/scripts/helpers/epg.js b/scripts/helpers/epg.js new file mode 100644 index 000000000..202a89e89 --- /dev/null +++ b/scripts/helpers/epg.js @@ -0,0 +1,12 @@ +const axios = require('axios') + +module.exports = { + codes: { + async load() { + return await axios + .get('https://iptv-org.github.io/epg/codes.json') + .then(r => r.data) + .catch(console.log) + } + } +}