mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update ontvtonight.com.config.js
This commit is contained in:
parent
f9d7459227
commit
04f1670a27
1 changed files with 8 additions and 3 deletions
|
@ -13,9 +13,14 @@ module.exports = {
|
||||||
channels: 'ontvtonight.com.channels.xml',
|
channels: 'ontvtonight.com.channels.xml',
|
||||||
output: '.gh-pages/guides/ontvtonight.com.guide.xml',
|
output: '.gh-pages/guides/ontvtonight.com.guide.xml',
|
||||||
url: function ({ date, channel }) {
|
url: function ({ date, channel }) {
|
||||||
return `https://www.ontvtonight.com/uk/guide/listings/channel/${
|
const [region, id] = channel.site_id.split('#')
|
||||||
channel.site_id
|
return region
|
||||||
}.html?dt=${date.format('YYYY-MM-DD')}`
|
? `https://www.ontvtonight.com/${region}/guide/listings/channel/${id}.html?dt=${date.format(
|
||||||
|
'YYYY-MM-DD'
|
||||||
|
)}`
|
||||||
|
: `https://www.ontvtonight.com/guide/listings/channel/${id}.html?dt=${date.format(
|
||||||
|
'YYYY-MM-DD'
|
||||||
|
)}`
|
||||||
},
|
},
|
||||||
parser: function ({ content, date }) {
|
parser: function ({ content, date }) {
|
||||||
const programs = []
|
const programs = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue