mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 08:30:06 -04:00
wip
This commit is contained in:
parent
b9be8e9d33
commit
533583fee4
8 changed files with 16 additions and 45 deletions
|
@ -1,28 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?><tv>
|
||||
<channel id="13emeRue.fr"><display-name>13ème Rue</display-name></channel>
|
||||
<programme start="20210312033500 +0300" stop="20210312051000 +0300" channel="13emeRue.fr"><title lang="fr">Meurtres à Saint-Malo</title><category lang="fr">Téléfilm de suspense</category></programme>
|
||||
<programme start="20210312051000 +0300" stop="20210312064500 +0300" channel="13emeRue.fr"><title lang="fr">Commissaire Magellan</title><category lang="fr">Série policière</category></programme>
|
||||
<programme start="20210312064500 +0300" stop="20210312071500 +0300" channel="13emeRue.fr"><title lang="fr">Complices</title><category lang="fr">Court métrage</category></programme>
|
||||
<programme start="20210312071500 +0300" stop="20210312073500 +0300" channel="13emeRue.fr"><title lang="fr">Ice scream</title><category lang="fr">Court métrage</category></programme>
|
||||
<programme start="20210312073500 +0300" stop="20210312075000 +0300" channel="13emeRue.fr"><title lang="fr">Intus</title><category lang="fr">Court métrage dramatique</category></programme>
|
||||
<programme start="20210312075000 +0300" stop="20210312081000 +0300" channel="13emeRue.fr"><title lang="fr">Caïds</title><category lang="fr">Court métrage dramatique</category></programme>
|
||||
<programme start="20210312081000 +0300" stop="20210312090000 +0300" channel="13emeRue.fr"><title lang="fr">Crimes parfaits</title><category lang="fr">Série policière</category></programme>
|
||||
<programme start="20210312090000 +0300" stop="20210312100500 +0300" channel="13emeRue.fr"><title lang="fr">Crimes parfaits</title><category lang="fr">Série policière</category></programme>
|
||||
<programme start="20210312100500 +0300" stop="20210312114000 +0300" channel="13emeRue.fr"><title lang="fr">Meurtres à Rocamadour</title><category lang="fr">Téléfilm policier</category></programme>
|
||||
<programme start="20210312114000 +0300" stop="20210312132500 +0300" channel="13emeRue.fr"><title lang="fr">Commissaire Magellan</title><category lang="fr">Série policière</category></programme>
|
||||
<programme start="20210312132500 +0300" stop="20210312142000 +0300" channel="13emeRue.fr"><title lang="fr">Falco</title><category lang="fr">Série de suspense</category></programme>
|
||||
<programme start="20210312142000 +0300" stop="20210312150500 +0300" channel="13emeRue.fr"><title lang="fr">Close to Home : Juste cause</title><category lang="fr">Série policière</category></programme>
|
||||
<programme start="20210312150500 +0300" stop="20210312155500 +0300" channel="13emeRue.fr"><title lang="fr">Close to Home : Juste cause</title><category lang="fr">Série policière</category></programme>
|
||||
<programme start="20210312155500 +0300" stop="20210312165000 +0300" channel="13emeRue.fr"><title lang="fr">Chicago Fire</title><category lang="fr">Série dramatique</category></programme>
|
||||
<programme start="20210312165000 +0300" stop="20210312183500 +0300" channel="13emeRue.fr"><title lang="fr">Les petits meurtres d'Agatha Christie</title><category lang="fr">Série policière</category></programme>
|
||||
<programme start="20210312183500 +0300" stop="20210312194000 +0300" channel="13emeRue.fr"><title lang="fr">Falco</title><category lang="fr">Série de suspense</category></programme>
|
||||
<programme start="20210312194000 +0300" stop="20210312202500 +0300" channel="13emeRue.fr"><title lang="fr">New York, section criminelle</title><category lang="fr">Série policière</category></programme>
|
||||
<programme start="20210312202500 +0300" stop="20210312211500 +0300" channel="13emeRue.fr"><title lang="fr">New York, unité spéciale</title><category lang="fr">Série policière</category></programme>
|
||||
<programme start="20210312211500 +0300" stop="20210312220500 +0300" channel="13emeRue.fr"><title lang="fr">New York, unité spéciale</title><category lang="fr">Série policière</category></programme>
|
||||
<programme start="20210312220500 +0300" stop="20210312230000 +0300" channel="13emeRue.fr"><title lang="fr">New York, section criminelle</title><category lang="fr">Série policière</category></programme>
|
||||
<programme start="20210312230000 +0300" stop="20210312235500 +0300" channel="13emeRue.fr"><title lang="fr">Chicago Fire</title><category lang="fr">Série dramatique</category></programme>
|
||||
<programme start="20210312235500 +0300" stop="20210313004000 +0300" channel="13emeRue.fr"><title lang="fr">New York, section criminelle</title><category lang="fr">Série policière</category></programme>
|
||||
<programme start="20210313004000 +0300" stop="20210313013000 +0300" channel="13emeRue.fr"><title lang="fr">New York, section criminelle</title><category lang="fr">Série policière</category></programme>
|
||||
<programme start="20210313013000 +0300" stop="20210313021500 +0300" channel="13emeRue.fr"><title lang="fr">New York, section criminelle</title><category lang="fr">Série policière</category></programme>
|
||||
<programme start="20210313021500 +0300" stop="20210313030500 +0300" channel="13emeRue.fr"><title lang="fr">New York, unité spéciale</title><category lang="fr">Série policière</category></programme>
|
||||
</tv>
|
|
@ -62,7 +62,7 @@ async function main() {
|
|||
utils.writeToFile(config.output, xml)
|
||||
|
||||
console.log(`File '${config.output}' successfully saved`)
|
||||
console.log('Finish\r\n')
|
||||
console.log('Finish')
|
||||
}
|
||||
|
||||
main()
|
||||
|
|
|
@ -18,7 +18,9 @@ utils.loadConfig = function (file) {
|
|||
if (!file) throw new Error('Path to [site].config.js is missing')
|
||||
console.log(`Loading '${file}'...`)
|
||||
|
||||
const config = require(path.resolve(process.cwd(), file))
|
||||
const configPath = path.resolve(process.cwd(), file)
|
||||
const config = require(configPath)
|
||||
const channelsPath = path.resolve(this.getDirectory(configPath), `${config.site}.channels.xml`)
|
||||
|
||||
return Object.assign(
|
||||
{},
|
||||
|
@ -27,7 +29,8 @@ utils.loadConfig = function (file) {
|
|||
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36 Edg/79.0.309.71',
|
||||
days: 1,
|
||||
cookie: '',
|
||||
lang: 'en'
|
||||
lang: 'en',
|
||||
channels: channelsPath
|
||||
},
|
||||
config
|
||||
)
|
||||
|
|
|
@ -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>
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 }) {
|
||||
|
|
|
@ -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}`
|
||||
},
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
./bin/epg-grabber/index.js --config=sites/tv.yandex.ru.config.js && \
|
||||
./bin/epg-grabber/index.js --config=sites/tvguide.co.uk.config.js && \
|
||||
./bin/epg-grabber/index.js --config=sites/programme-tv.net.config.js
|
||||
./bin/epg-grabber/index.js --config=sites/tvguide.co.uk.config.js
|
||||
# ./bin/epg-grabber/index.js --config=sites/programme-tv.net.config.js
|
Loading…
Add table
Add a link
Reference in a new issue