This commit is contained in:
freearhey
2021-03-12 17:42:01 +03:00
parent b9be8e9d33
commit 533583fee4
8 changed files with 16 additions and 45 deletions

View File

@@ -1,17 +1,16 @@
const jsdom = require('jsdom')
const { JSDOM } = jsdom
const parse = require('parse-duration')
const dayjs = require('dayjs')
var customParseFormat = require('dayjs/plugin/customParseFormat')
var duration = require('dayjs/plugin/duration')
const customParseFormat = require('dayjs/plugin/customParseFormat')
const duration = require('dayjs/plugin/duration')
dayjs.extend(duration)
dayjs.extend(customParseFormat)
const { htmlToText } = require('html-to-text')
var parse = require('parse-duration')
module.exports = {
site: 'programme-tv.net',
lang: 'fr',
output: '../../.gh-pages/guides/programme-tv.net.xml',
channels: '../../sites/programme-tv.net.channels.xml',
url: function ({ date, channel }) {
return `https://www.programme-tv.net/programme/chaine/${date.format('YYYY-MM-DD')}/programme-${
channel.site_id
@@ -64,8 +63,6 @@ module.exports = {
}
})
// console.log(programs)
return programs
}
}