[Bot] Update playlists (#4600)

* Update Playlist.js

* Install axios package

* Create epg.js

* Update db.js

* Update format.js

* Update Channel.js

* Update db.js

* Update generate.js

* [Bot] Format playlists

* [Bot] Remove duplicates

* [Bot] Sort channels

* [Bot] Update README.md

* [Bot] Format playlists

* [Bot] Remove duplicates

* [Bot] Sort channels

* [Bot] Update README.md

Co-authored-by: Aleksandr Statciuk <free.arhey@gmail.com>
Co-authored-by: iptv-bot[bot] <84861620+iptv-bot[bot]@users.noreply.github.com>
This commit is contained in:
iptv-bot[bot] 2021-09-17 13:29:47 +00:00 committed by GitHub
parent df7907497b
commit 3e2bddab82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 255 additions and 202 deletions

12
scripts/helpers/epg.js Normal file
View 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)
}
}
}