mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 08:30:06 -04:00
Update zap2it.com.config.js
This commit is contained in:
parent
d97cd5ea7f
commit
42631558fc
1 changed files with 1 additions and 4 deletions
|
@ -16,13 +16,10 @@ module.exports = {
|
|||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Accept': 'application/json',
|
||||
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36',
|
||||
},
|
||||
data({ date, channel }) {
|
||||
const [device, lineupId, headendId, countryCode, postalCode, prgsvcid] = channel.site_id.split('/')
|
||||
|
||||
if (!device || !lineupId || !headendId || !countryCode || !postalCode || !prgsvcid) {
|
||||
throw new Error('El site_id no contiene todos los valores obligatorios.')
|
||||
}
|
||||
|
||||
const timestamp = dayjs(date).unix().toString()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue