mirror of
https://github.com/iptv-org/epg
synced 2026-09-14 04:56:25 -04:00
reinstate certain deps & modify configs
This commit is contained in:
@@ -3,13 +3,11 @@ const utc = require('dayjs/plugin/utc')
|
||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||
const duration = require('dayjs/plugin/duration')
|
||||
const doFetch = require('../../scripts/core/multifetch')
|
||||
const debug = require('debug')('site:dsmart.com.tr')
|
||||
|
||||
dayjs.extend(utc)
|
||||
dayjs.extend(customParseFormat)
|
||||
dayjs.extend(duration)
|
||||
|
||||
doFetch.setDebugger(debug)
|
||||
|
||||
const channelsWithSchedule = true
|
||||
const pageLimit = 10
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const axios = require('axios')
|
||||
const convert = require('xml-js')
|
||||
const convert = require('xml-js-v2')
|
||||
const dayjs = require('dayjs')
|
||||
const timezone = require('dayjs/plugin/timezone')
|
||||
|
||||
|
||||
@@ -5,14 +5,11 @@ const utc = require('dayjs/plugin/utc')
|
||||
const timezone = require('dayjs/plugin/timezone')
|
||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||
const doFetch = require('../../scripts/core/multifetch')
|
||||
const debug = require('debug')('site:mncvision.id')
|
||||
|
||||
dayjs.extend(utc)
|
||||
dayjs.extend(timezone)
|
||||
dayjs.extend(customParseFormat)
|
||||
|
||||
doFetch.setCheckResult(false).setDebugger(debug)
|
||||
|
||||
const languages = { en: 'english', id: 'indonesia' }
|
||||
const cookies = {}
|
||||
const timeout = 30000
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
<channel site="mujtvprogram.cz" site_id="1089" lang="cs" xmltv_id="">Warner TV</channel>
|
||||
<channel site="mujtvprogram.cz" site_id="1128" lang="cs" xmltv_id="">Viasat True Crime</channel>
|
||||
<channel site="mujtvprogram.cz" site_id="1133" lang="cs" xmltv_id="">DVTV Extra</channel>
|
||||
<channel site="mujtvprogram.cz" site_id="1207" lang="cs" xmltv_id="">JOJ Svět</channel>
|
||||
<channel site="mujtvprogram.cz" site_id="46" lang="cs" xmltv_id="3sat.de@SD">3SAT</channel>
|
||||
<channel site="mujtvprogram.cz" site_id="288" lang="cs" xmltv_id="24Horas.es@SD">Canal 24 Horas</channel>
|
||||
<channel site="mujtvprogram.cz" site_id="296" lang="cs" xmltv_id="A11.cz@SD">A11</channel>
|
||||
@@ -188,7 +189,6 @@
|
||||
<channel site="mujtvprogram.cz" site_id="1017" lang="sk" xmltv_id="">Markíza Krimi</channel>
|
||||
<channel site="mujtvprogram.cz" site_id="1042" lang="sk" xmltv_id="">JOJ 24</channel>
|
||||
<channel site="mujtvprogram.cz" site_id="1051" lang="sk" xmltv_id="">TV Spark</channel>
|
||||
<channel site="mujtvprogram.cz" site_id="1060" lang="sk" xmltv_id="">JOJ Svet</channel>
|
||||
<channel site="mujtvprogram.cz" site_id="1107" lang="sk" xmltv_id="">JOJ Šport</channel>
|
||||
<channel site="mujtvprogram.cz" site_id="1114" lang="sk" xmltv_id="">Markíza KLASIK</channel>
|
||||
<channel site="mujtvprogram.cz" site_id="1145" lang="sk" xmltv_id="">JOJ Šport 2</channel>
|
||||
@@ -201,7 +201,7 @@
|
||||
<channel site="mujtvprogram.cz" site_id="532" lang="sk" xmltv_id="JOJFamily.sk@SD">JOJ Family</channel>
|
||||
<channel site="mujtvprogram.cz" site_id="398" lang="sk" xmltv_id="Jojko.sk@SD">Jojko</channel>
|
||||
<channel site="mujtvprogram.cz" site_id="184" lang="sk" xmltv_id="JOJPlus.sk@SD">PLUS</channel>
|
||||
<channel site="mujtvprogram.cz" site_id="349" lang="sk" xmltv_id="JOJWAU.sk@SD">WAU</channel>
|
||||
<channel site="mujtvprogram.cz" site_id="349" lang="sk" xmltv_id="JOJWAU.sk@SD">JOJ Krimi</channel>
|
||||
<channel site="mujtvprogram.cz" site_id="183" lang="sk" xmltv_id="Markiza.sk@SD">Markíza</channel>
|
||||
<channel site="mujtvprogram.cz" site_id="308" lang="sk" xmltv_id="MarkizaDajto.sk@SD">Dajto</channel>
|
||||
<channel site="mujtvprogram.cz" site_id="182" lang="sk" xmltv_id="MarkizaDoma.sk@SD">Doma</channel>
|
||||
|
||||
@@ -2,7 +2,7 @@ const dayjs = require('dayjs')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
const timezone = require('dayjs/plugin/timezone')
|
||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||
const convert = require('xml-js')
|
||||
const convert = require('xml-js-v2')
|
||||
|
||||
dayjs.extend(utc)
|
||||
dayjs.extend(timezone)
|
||||
|
||||
@@ -5,14 +5,11 @@ const timezone = require('dayjs/plugin/timezone')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||
const doFetch = require('../../scripts/core/multifetch')
|
||||
const debug = require('debug')('site:rotana.net')
|
||||
|
||||
dayjs.extend(timezone)
|
||||
dayjs.extend(utc)
|
||||
dayjs.extend(customParseFormat)
|
||||
|
||||
doFetch.setCheckResult(false).setDebugger(debug)
|
||||
|
||||
const tz = 'Asia/Riyadh'
|
||||
const defaultHeaders = {
|
||||
'User-Agent':
|
||||
|
||||
@@ -3,12 +3,10 @@ const dayjs = require('dayjs')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||
const doFetch = require('../../scripts/core/multifetch')
|
||||
const debug = require('debug')('site:startimestv.com')
|
||||
|
||||
dayjs.extend(utc)
|
||||
dayjs.extend(customParseFormat)
|
||||
|
||||
doFetch.setDebugger(debug).setMaxWorker(5)
|
||||
|
||||
module.exports = {
|
||||
site: 'startimestv.com',
|
||||
|
||||
@@ -5,14 +5,11 @@ const utc = require('dayjs/plugin/utc')
|
||||
const timezone = require('dayjs/plugin/timezone')
|
||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||
const doFetch = require('../../scripts/core/multifetch')
|
||||
const debug = require('debug')('site:tivie.id')
|
||||
|
||||
dayjs.extend(utc)
|
||||
dayjs.extend(timezone)
|
||||
dayjs.extend(customParseFormat)
|
||||
|
||||
doFetch.setDebugger(debug)
|
||||
|
||||
const tz = 'Asia/Jakarta'
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -2,7 +2,6 @@ const axios = require('axios')
|
||||
const dayjs = require('dayjs')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
const timezone = require('dayjs/plugin/timezone')
|
||||
const debug = require('debug')('site:tvguide.com')
|
||||
|
||||
dayjs.extend(utc)
|
||||
dayjs.extend(timezone)
|
||||
@@ -67,12 +66,12 @@ module.exports = {
|
||||
if (queues.length && fetchSegments) {
|
||||
for (let segment = 2; segment <= segments; segment++) {
|
||||
const segmentUrl = await module.exports.url({ date, segment })
|
||||
debug(`fetch segment ${segment}: ${segmentUrl}`)
|
||||
console.debug(`fetch segment ${segment}: ${segmentUrl}`)
|
||||
try {
|
||||
const res = await axios.get(segmentUrl, { headers })
|
||||
queues.push(...f(res.data))
|
||||
} catch (err) {
|
||||
debug(`Failed to fetch segment ${segment}: ${err.message}`)
|
||||
console.debug(`Failed to fetch segment ${segment}: ${err.message}`)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -92,7 +91,7 @@ module.exports = {
|
||||
stop: dayjs.unix(item.endTime || queue.i.endTime)
|
||||
})
|
||||
} catch (err) {
|
||||
debug(`Failed to fetch program details ${queue.url}: ${err.message}`)
|
||||
console.debug(`Failed to fetch program details ${queue.url}: ${err.message}`)
|
||||
}
|
||||
}
|
||||
return programs
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
const dayjs = require('dayjs')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
const doFetch = require('../../scripts/core/multifetch')
|
||||
const debug = require('debug')('site:virgintvgo.virginmedia.com')
|
||||
|
||||
dayjs.extend(utc)
|
||||
|
||||
doFetch.setDebugger(debug)
|
||||
|
||||
const detailedGuide = true
|
||||
|
||||
module.exports = {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const dayjs = require('dayjs')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
const doFetch = require('@ntlab/sfetch')
|
||||
const doFetch = require('../../scripts/core/multifetch')
|
||||
const uniqBy = require('lodash.uniqby')
|
||||
|
||||
dayjs.extend(utc)
|
||||
|
||||
Reference in New Issue
Block a user