mirror of
https://github.com/iptv-org/epg
synced 2026-05-09 10:57:03 -04:00
updated plex.tv
changed site_id logic fixed site_id in *.channels.xml added test for channels list added logo and url to channels function
This commit is contained in:
@@ -12,9 +12,8 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
url: function ({ channel, date }) {
|
||||
const [, channelGridKey] = channel.site_id.split('-')
|
||||
|
||||
return `${API_ENDPOINT}/grid?channelGridKey=${channelGridKey}&date=${date.format('YYYY-MM-DD')}`
|
||||
|
||||
return `${API_ENDPOINT}/grid?channelGridKey=${channel.site_id}&date=${date.format('YYYY-MM-DD')}`
|
||||
},
|
||||
parser({ content }) {
|
||||
const programs = []
|
||||
@@ -41,8 +40,10 @@ module.exports = {
|
||||
return data.MediaContainer.Channel.map(c => {
|
||||
return {
|
||||
lang: 'en',
|
||||
site_id: c.id,
|
||||
name: c.title
|
||||
site_id: c.gridKey,
|
||||
name: c.title,
|
||||
// logo: c.thumb || null,
|
||||
// url: c.Media?.[0]?.Part?.[0]?.key ? `${API_ENDPOINT}${c.Media?.[0]?.Part?.[0]?.key}?X-Plex-Token=${token}` : null
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user