This commit is contained in:
freearhey
2021-03-12 02:49:09 +03:00
parent d06fa32f9d
commit cd22e3a477
12 changed files with 414 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ module.exports = {
url: function ({ date, channel }) {
return `https://www.tvguide.co.uk/mobile/channellisting.asp?ch=${channel.site_id}`
},
parser: function ({ channel, content, date }) {
parser: function ({ channel, content, date, lang }) {
const programs = []
const dom = new JSDOM(content)
const channelListings = dom.window.document.querySelector('#channel-listings')
@@ -42,7 +42,7 @@ module.exports = {
description,
start,
stop: null,
lang: 'en',
lang,
channel: channel['xmltv_id']
})
}