This commit is contained in:
freearhey
2021-03-13 16:17:38 +03:00
parent 980019968e
commit ea1d9b7370
11 changed files with 79 additions and 2766 deletions

View File

@@ -2,12 +2,16 @@ const jsdom = require('jsdom')
const { JSDOM } = jsdom
const { htmlToText } = require('html-to-text')
const dayjs = require('dayjs')
var customParseFormat = require('dayjs/plugin/customParseFormat')
const utc = require('dayjs/plugin/utc')
const customParseFormat = require('dayjs/plugin/customParseFormat')
dayjs.extend(utc)
dayjs.extend(customParseFormat)
module.exports = {
lang: 'en',
site: 'tvguide.co.uk',
channels: 'tvguide.co.uk.channels.xml',
output: '.gh-pages/guides/tvguide.co.uk.xml',
url: function ({ date, channel }) {
return `https://www.tvguide.co.uk/mobile/channellisting.asp?ch=${channel.site_id}`