Update sky.com
This commit is contained in:
@@ -3,10 +3,9 @@ const dayjs = require('dayjs')
|
||||
module.exports = {
|
||||
site: 'sky.com',
|
||||
url: function ({ date, channel }) {
|
||||
return `https://epgservices.sky.com/5.2.2/api/2.0/channel/json/${channel.site_id}/${date.unix()}/86400/4`
|
||||
},
|
||||
logo: function ({ channel }) {
|
||||
return `https://d2n0069hmnqmmx.cloudfront.net/epgdata/1.0/newchanlogos/400/160/skychb${channel.site_id}.png`
|
||||
return `https://epgservices.sky.com/5.2.2/api/2.0/channel/json/${
|
||||
channel.site_id
|
||||
}/${date.unix()}/86400/4`
|
||||
},
|
||||
parser: function ({ content, date, channel }) {
|
||||
const programs = []
|
||||
@@ -18,9 +17,7 @@ module.exports = {
|
||||
description: item.d,
|
||||
start: dayjs.unix(item.s),
|
||||
stop: dayjs.unix(item.s + item.m[1]),
|
||||
icon: item.img
|
||||
? `http://epgstatic.sky.com/epgdata/1.0/paimage/46/1/${item.img}`
|
||||
: null
|
||||
icon: item.img ? `http://epgstatic.sky.com/epgdata/1.0/paimage/46/1/${item.img}` : null
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user