mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-13 10:30:03 -04:00
Remove epg parser
This commit is contained in:
parent
b7b01ad92f
commit
80f3518d57
5 changed files with 0 additions and 132 deletions
|
@ -1,5 +1,4 @@
|
|||
const playlistParser = require('iptv-playlist-parser')
|
||||
const epgParser = require('epg-parser')
|
||||
const utils = require('./utils')
|
||||
const categories = require('./categories')
|
||||
const path = require('path')
|
||||
|
@ -22,18 +21,6 @@ parser.parsePlaylist = function (filename) {
|
|||
return new Playlist({ header: result.header, items: result.items, url: filename, country, name })
|
||||
}
|
||||
|
||||
parser.parseEPG = async function (url) {
|
||||
return utils.loadEPG(url).then(content => {
|
||||
const result = epgParser.parse(content)
|
||||
const channels = {}
|
||||
for (let channel of result.channels) {
|
||||
channels[channel.id] = channel
|
||||
}
|
||||
|
||||
return { url, channels }
|
||||
})
|
||||
}
|
||||
|
||||
class Playlist {
|
||||
constructor({ header, items, url, name, country }) {
|
||||
this.url = url
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue