mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 02:47:02 -05: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:
@@ -11,7 +11,7 @@ module.exports = {
|
|||||||
url({ channel, date }) {
|
url({ channel, date }) {
|
||||||
return `https://api.firstmedia.com/api/content/tv-guide/list?date=${date.format(
|
return `https://api.firstmedia.com/api/content/tv-guide/list?date=${date.format(
|
||||||
'DD/MM/YYYY'
|
'DD/MM/YYYY'
|
||||||
)}&channel=${channel.site_id}&startTime=0&endTime=24`
|
)}&channel=${channel.site_id}&startTime=1&endTime=24`
|
||||||
},
|
},
|
||||||
parser({ content, channel, date }) {
|
parser({ content, channel, date }) {
|
||||||
if (!content || !channel || !date) return []
|
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', () => {
|
it('can generate valid url', () => {
|
||||||
expect(url({ channel, date })).toBe(
|
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'
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user