iptv/scripts/helpers/epg.js

13 lines
231 B
JavaScript

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