Merge pull request #3092 from iptv-org/update-web.magentatv.de

Update web.magentatv.de
This commit is contained in:
PopeyeTheSai10r
2026-04-20 11:47:07 -07:00
committed by GitHub
2 changed files with 7 additions and 4 deletions

View File

@@ -46,6 +46,7 @@ module.exports = {
title: item.name,
description: item.introduce,
image: parseImage(item),
icon: parseImage(item),
category: parseCategory(item),
start: parseStart(item),
stop: parseStop(item),
@@ -176,7 +177,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
@@ -200,8 +201,7 @@ async function fetchCookieAndToken() {
X_CSRFTOKEN = response.data.csrfToken
Cookie = extractedCookies.join(' ')
} catch(error) {
} catch (error) {
console.error(error)
}
}

View File

@@ -27,7 +27,7 @@ axios.request.mockImplementation(req => {
'JSESSIONID=2147EBA9C59BCDC33822CFD2764E5C0B; Path=/EPG/; HttpOnly; SameSite=None; Secure',
'CSESSIONID=1CF187ABCA12ED1B01ADF84C691048ED; Path=/EPG/; Secure; HttpOnly; SameSite=None',
'CSRFSESSION=ea2329ba213271192bffd77c2fa276086a8e828c1a4ee379; Path=/EPG/; SameSite=None; Secure'
]
]
},
data: {
csrfToken: '6f678415702493d2c28813747c413aa05c87d8f87ecf05fe'
@@ -94,6 +94,7 @@ it('can parse response', () => {
'Die besten Big-Wave-Surfer werden bei ihrer Suche nach der nächsten großen Welle begleitet.',
image:
'http://ngiss.t-online.de/cm1s/media/gracenote/2/4/p24832950_e_h9_aa_2023-06-22T10_12_01.jpg',
icon: 'http://ngiss.t-online.de/cm1s/media/gracenote/2/4/p24832950_e_h9_aa_2023-06-22T10_12_01.jpg',
category: ['Sport']
},
{
@@ -107,6 +108,8 @@ it('can parse response', () => {
episode: '5',
image:
'http://ngiss.t-online.de/cm1s/media/gracenote/1/0/p10262968_e_h9_ah_2021-10-20T07_16_16.jpg',
icon:
'http://ngiss.t-online.de/cm1s/media/gracenote/1/0/p10262968_e_h9_ah_2021-10-20T07_16_16.jpg',
category: ['Sitcom'],
directors: ['Mark Cendrowski'],
producers: ['Chuck Lorre', 'Bill Prady', 'Steven Molaro'],