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) + } + } +}