mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Update tvtv.us.config.js
This commit is contained in:
parent
a1c4bf99ef
commit
7424ede4fa
1 changed files with 3 additions and 5 deletions
|
@ -12,7 +12,7 @@ module.exports = {
|
||||||
}/airings?startDateTime=${date.format()}&endDateTime=${date.add(1, 'd').format()}`
|
}/airings?startDateTime=${date.format()}&endDateTime=${date.add(1, 'd').format()}`
|
||||||
},
|
},
|
||||||
logo({ channel }) {
|
logo({ channel }) {
|
||||||
return channel.logo
|
return `http://tvtv.tmsimg.com/assets/s${channel.site_id}_ll_h15_ad.png?w=360&h=270`
|
||||||
},
|
},
|
||||||
parser: function ({ content }) {
|
parser: function ({ content }) {
|
||||||
let programs = []
|
let programs = []
|
||||||
|
@ -40,14 +40,12 @@ module.exports = {
|
||||||
.catch(console.log)
|
.catch(console.log)
|
||||||
|
|
||||||
return data.data
|
return data.data
|
||||||
.filter(i => ['Satellite'].includes(i.type))
|
.filter(i => !['Radio Station'].includes(i.type))
|
||||||
.map(item => {
|
.map(item => {
|
||||||
return {
|
return {
|
||||||
lang: 'en',
|
lang: 'en',
|
||||||
site_id: item.id,
|
site_id: item.id,
|
||||||
xmltv_id: item.shortName,
|
name: item.name
|
||||||
name: item.name,
|
|
||||||
logo: item.logo
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue