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 = {
|
||||
site: 'skylink.cz',
|
||||
request: {
|
||||
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
|
||||
url({channel, date}) {
|
||||
const diff = date.diff(dayjs.utc().startOf('d'), 'd')
|
||||
params.append('day', diff)
|
||||
return params
|
||||
}
|
||||
},
|
||||
url() {
|
||||
return `https://services.mujtvprogram.cz/tvprogram2services/services/tvprogrammelist_mobile.php`
|
||||
return `https://services.mujtvprogram.cz/tvprogram2services/services/tvprogrammelist_mobile.php?channel_cid=${channel.site_id}&day=${diff}`
|
||||
},
|
||||
parser({ content}) {
|
||||
let programs = []
|
||||
|
@ -39,7 +26,6 @@ module.exports = {
|
|||
date: item.year || null,
|
||||
director: parseList(item.directors),
|
||||
actor: parseList(item.actors)
|
||||
|
||||
})
|
||||
})
|
||||
return programs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue