Fix other urls as well

This commit is contained in:
Michaël Arnauts
2026-01-26 12:17:22 +01:00
parent 37e478b423
commit 8002fe2a40

View File

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