mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update sky.de guide
This commit is contained in:
parent
d241040c21
commit
1bce175a56
2 changed files with 7 additions and 3 deletions
|
@ -3,10 +3,14 @@ const dayjs = require('dayjs')
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'sky.de',
|
site: 'sky.de',
|
||||||
days: 2,
|
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`,
|
url: `https://www.sky.de/sgtvg/service/getBroadcastsForGrid`,
|
||||||
request: {
|
request: {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
headers: {
|
||||||
|
'accept-language': 'en-GB',
|
||||||
|
'accept-encoding': 'gzip, deflate, br',
|
||||||
|
accept: 'application/json'
|
||||||
|
},
|
||||||
data: function ({ channel, date }) {
|
data: function ({ channel, date }) {
|
||||||
return {
|
return {
|
||||||
cil: [channel.site_id],
|
cil: [channel.site_id],
|
||||||
|
@ -43,4 +47,4 @@ function parseContent(content, channel) {
|
||||||
function parseItems(content, channel) {
|
function parseItems(content, channel) {
|
||||||
const data = parseContent(content, channel)
|
const data = parseContent(content, channel)
|
||||||
return data && Array.isArray(data.el) ? data.el : []
|
return data && Array.isArray(data.el) ? data.el : []
|
||||||
}
|
}
|
|
@ -64,4 +64,4 @@ it('can handle empty guide', () => {
|
||||||
content: `[]`
|
content: `[]`
|
||||||
})
|
})
|
||||||
expect(result).toMatchObject([])
|
expect(result).toMatchObject([])
|
||||||
})
|
})
|
Loading…
Add table
Add a link
Reference in a new issue