mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Fix firstmedia.com schedule api start time.
The correct start time for schedule is 1. Settings start time to 0 will mix the schedules from next day.
This commit is contained in:
parent
918bb1855e
commit
ccd1d3a863
2 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ module.exports = {
|
|||
url({ channel, date }) {
|
||||
return `https://api.firstmedia.com/api/content/tv-guide/list?date=${date.format(
|
||||
'DD/MM/YYYY'
|
||||
)}&channel=${channel.site_id}&startTime=0&endTime=24`
|
||||
)}&channel=${channel.site_id}&startTime=1&endTime=24`
|
||||
},
|
||||
parser({ content, channel, date }) {
|
||||
if (!content || !channel || !date) return []
|
||||
|
|
|
@ -8,7 +8,7 @@ const channel = { site_id: '243', xmltv_id: 'AlJazeeraEnglish.qa', lang: 'id' }
|
|||
|
||||
it('can generate valid url', () => {
|
||||
expect(url({ channel, date })).toBe(
|
||||
'https://api.firstmedia.com/api/content/tv-guide/list?date=08/11/2023&channel=243&startTime=0&endTime=24'
|
||||
'https://api.firstmedia.com/api/content/tv-guide/list?date=08/11/2023&channel=243&startTime=1&endTime=24'
|
||||
)
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue