Remove epg parser

This commit is contained in:
freearhey 2021-03-06 21:22:23 +03:00
parent b7b01ad92f
commit 80f3518d57
5 changed files with 0 additions and 132 deletions

View file

@ -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