mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-17 12:30:03 -04:00
Create epg.js
This commit is contained in:
parent
d7f3998a3d
commit
7f2c5b36c9
1 changed files with 12 additions and 0 deletions
12
scripts/helpers/epg.js
Normal file
12
scripts/helpers/epg.js
Normal file
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue