mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Merge pull request #2223 from tohenk/fix-firstmedia.com-start-time
Fix firstmedia.com schedule api start time.
This commit is contained in:
commit
c6ab8c058a
2 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue