mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Update skylink.cz.config.js
Change from POST to GET
This commit is contained in:
parent
fe572b9505
commit
e8999f6093
1 changed files with 3 additions and 17 deletions
|
@ -9,22 +9,9 @@ dayjs.extend(customParseFormat)
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
site: 'skylink.cz',
|
site: 'skylink.cz',
|
||||||
request: {
|
url({channel, date}) {
|
||||||
method: 'POST',
|
|
||||||
headers: {
|
|
||||||
'Content-Type': 'application/x-www-form-urlencoded'
|
|
||||||
},
|
|
||||||
data: function ({ channel, date }) {
|
|
||||||
const params = new URLSearchParams()
|
|
||||||
params.append('channel_cid', channel.site_id)
|
|
||||||
// 0 = today, 1 = tomorrow, etc
|
|
||||||
const diff = date.diff(dayjs.utc().startOf('d'), 'd')
|
const diff = date.diff(dayjs.utc().startOf('d'), 'd')
|
||||||
params.append('day', diff)
|
return `https://services.mujtvprogram.cz/tvprogram2services/services/tvprogrammelist_mobile.php?channel_cid=${channel.site_id}&day=${diff}`
|
||||||
return params
|
|
||||||
}
|
|
||||||
},
|
|
||||||
url() {
|
|
||||||
return `https://services.mujtvprogram.cz/tvprogram2services/services/tvprogrammelist_mobile.php`
|
|
||||||
},
|
},
|
||||||
parser({ content}) {
|
parser({ content}) {
|
||||||
let programs = []
|
let programs = []
|
||||||
|
@ -39,7 +26,6 @@ module.exports = {
|
||||||
date: item.year || null,
|
date: item.year || null,
|
||||||
director: parseList(item.directors),
|
director: parseList(item.directors),
|
||||||
actor: parseList(item.actors)
|
actor: parseList(item.actors)
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
return programs
|
return programs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue