Update sky.de guide

This commit is contained in:
RevGear 2023-01-20 18:01:01 +00:00
parent d241040c21
commit 1bce175a56
2 changed files with 7 additions and 3 deletions

View file

@ -3,10 +3,14 @@ const dayjs = require('dayjs')
module.exports = {
site: 'sky.de',
days: 2,
skip: true, // server returns error 403 (https://github.com/iptv-org/epg/runs/5435899744?check_suite_focus=true)
url: `https://www.sky.de/sgtvg/service/getBroadcastsForGrid`,
request: {
method: 'POST',
headers: {
'accept-language': 'en-GB',
'accept-encoding': 'gzip, deflate, br',
accept: 'application/json'
},
data: function ({ channel, date }) {
return {
cil: [channel.site_id],
@ -43,4 +47,4 @@ function parseContent(content, channel) {
function parseItems(content, channel) {
const data = parseContent(content, channel)
return data && Array.isArray(data.el) ? data.el : []
}
}

View file

@ -64,4 +64,4 @@ it('can handle empty guide', () => {
content: `[]`
})
expect(result).toMatchObject([])
})
})