mirror of
https://github.com/iptv-org/epg
synced 2026-03-22 03:41:02 -04:00
Fix other urls as well
This commit is contained in:
@@ -22,25 +22,19 @@ module.exports = {
|
|||||||
if (!items.length) return programs
|
if (!items.length) return programs
|
||||||
const promises = [
|
const promises = [
|
||||||
axios.get(
|
axios.get(
|
||||||
`${API_STATIC_ENDPOINT}/${channel.lang}/events/segments/${date
|
`${API_STATIC_ENDPOINT}/${channel.lang}/events/segments/${date.format('YYYYMMDD')}060000`,
|
||||||
.add(6, 'h')
|
|
||||||
.format('YYYYMMDDHHmmss')}`,
|
|
||||||
{
|
{
|
||||||
responseType: 'arraybuffer'
|
responseType: 'arraybuffer'
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
axios.get(
|
axios.get(
|
||||||
`${API_STATIC_ENDPOINT}/${channel.lang}/events/segments/${date
|
`${API_STATIC_ENDPOINT}/${channel.lang}/events/segments/${date.format('YYYYMMDD')}120000`,
|
||||||
.add(12, 'h')
|
|
||||||
.format('YYYYMMDDHHmmss')}`,
|
|
||||||
{
|
{
|
||||||
responseType: 'arraybuffer'
|
responseType: 'arraybuffer'
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
axios.get(
|
axios.get(
|
||||||
`${API_STATIC_ENDPOINT}/${channel.lang}/events/segments/${date
|
`${API_STATIC_ENDPOINT}/${channel.lang}/events/segments/${date.format('YYYYMMDD')}180000`,
|
||||||
.add(18, 'h')
|
|
||||||
.format('YYYYMMDDHHmmss')}`,
|
|
||||||
{
|
{
|
||||||
responseType: 'arraybuffer'
|
responseType: 'arraybuffer'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user