mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-12 18:10:04 -04:00
Installed iptv-playlist-parser
This commit is contained in:
parent
3d6d0cee3b
commit
d43e58bc26
3 changed files with 18 additions and 46 deletions
|
@ -40,20 +40,13 @@ function main() {
|
|||
const playlist = util.parsePlaylist(country.url)
|
||||
|
||||
const c = {
|
||||
name: country.inf.title,
|
||||
name: country.name,
|
||||
code: util.getBasename(country.url).toUpperCase()
|
||||
}
|
||||
|
||||
for(let item of playlist.items) {
|
||||
|
||||
let channel = util.createChannel({
|
||||
id: item.inf['tvg-id'],
|
||||
name: item.inf['tvg-name'],
|
||||
logo: item.inf['tvg-logo'],
|
||||
group: item.inf['group-title'],
|
||||
url: item.url,
|
||||
title: item.inf.title
|
||||
})
|
||||
let channel = util.createChannel(item)
|
||||
|
||||
let group = channel.group
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue