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:
1 parent
736839e234
commit
1be21bcf90
9 files changed
+1186
-1147
No files matched your search
@@ -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