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

@@ -2,7 +2,7 @@
<site site="programme-tv.net">
<channels>
<channel site_id="13eme-rue-26" xmltv_id="13emeRue.fr">13ème Rue</channel>
<!-- <channel site_id="6ter-202" xmltv_id="6ter.fr">6ter</channel>
<channel site_id="6ter-202" xmltv_id="6ter.fr">6ter</channel>
<channel site_id="8-mont-blanc-385" xmltv_id="8MontBlanc.fr">8 Mont-Blanc</channel>
<channel site_id="ab-1-31" xmltv_id="AB1.fr">AB 1</channel>
<channel site_id="ab-3-138" xmltv_id="AB3.fr">AB 3</channel>
@@ -276,6 +276,6 @@
<channel site_id="warner-tv-403" xmltv_id="Warner TV">Warner TV</channel>
<channel site_id="weo-394" xmltv_id="Weo">Weo</channel>
<channel site_id="xxl-135" xmltv_id="XXL">XXL</channel>
<channel site_id="zdf-193" xmltv_id="ZDF">ZDF</channel> -->
<channel site_id="zdf-193" xmltv_id="ZDF">ZDF</channel>
</channels>
</site>

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
}
}

View File

@@ -2,7 +2,6 @@ module.exports = {
site: 'tv.yandex.ru',
lang: 'ru',
output: '../../.gh-pages/guides/tv.yandex.ru.xml',
channels: '../../sites/tv.yandex.ru.channels.xml',
cookie:
'yandexuid=8747786251615498142; Expires=Tue, 11 Mar 2031 21:29:02 GMT; Domain=yandex.ru; Path=/',
url: function ({ date, channel }) {

View File

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