mirror of
https://github.com/iptv-org/epg
synced 2025-12-18 03:16:53 -05:00
Update ontvtonight.com.config.js
This commit is contained in:
@@ -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 = []
|
||||||
|
|||||||
Reference in New Issue
Block a user