fix issue with custom fix
This commit is contained in:
1 parent
f2959af0ac
commit
0ff4dc7c7a
2 files changed
+219
-171
No files matched your search
@@ -1,4 +1,4 @@
|
||||
// https://github.com/iptv-org/epg/blob/e4f92bb2a2768dcba3dbbd52b19d78d96bebc31e/sites/web.magentatv.de/web.magentatv.de.config.js
|
||||
//https://github.com/iptv-org/epg/blob/master/sites/web.magentatv.de/web.magentatv.de.config.js
|
||||
|
||||
const axios = require('axios')
|
||||
const dayjs = require('dayjs')
|
||||
@@ -48,6 +48,7 @@ module.exports = {
|
||||
title: item.name,
|
||||
description: item.introduce,
|
||||
image: parseImage(item),
|
||||
icon: parseImage(item),
|
||||
category: parseCategory(item),
|
||||
start: parseStart(item),
|
||||
stop: parseStop(item),
|
||||
@@ -178,7 +179,7 @@ async function fetchCookieAndToken() {
|
||||
T: 'Windows_chrome_118'
|
||||
},
|
||||
method: 'POST',
|
||||
data: '{"terminalid":"00:00:00:00:00:00","mac":"00:00:00:00:00:00","terminaltype":"WEBTV","utcEnable":1,"timezone":"Etc/GMT0","userType":3,"terminalvendor":"Unknown"}',
|
||||
data: '{"terminalid":"00:00:00:00:00:00","mac":"00:00:00:00:00:00","terminaltype":"WEBTV","utcEnable":1,"timezone":"Etc/GMT0","userType":3,"terminalvendor":"Unknown"}'
|
||||
})
|
||||
|
||||
// Extract the cookies specified in cookiesToExtract
|
||||
@@ -202,8 +203,7 @@ async function fetchCookieAndToken() {
|
||||
|
||||
X_CSRFTOKEN = response.data.csrfToken
|
||||
Cookie = extractedCookies.join(' ')
|
||||
|
||||
} catch(error) {
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
}
|
||||
}
|
||||
@@ -212,4 +212,4 @@ async function setHeaders() {
|
||||
await fetchCookieAndToken()
|
||||
|
||||
return { X_CSRFTOKEN, Cookie }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user