mirror of
https://github.com/iptv-org/epg
synced 2026-05-08 10:27:06 -04:00
Update tvplus.com.tr.config.js
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
const axios = require('axios')
|
||||
const dayjs = require('dayjs')
|
||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||
|
||||
@@ -9,8 +10,22 @@ module.exports = {
|
||||
url: 'https://izmaottvsc14.tvplus.com.tr:33207/EPG/JSON/PlayBillList',
|
||||
request: {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
cookie: 'JSESSIONID=05DH3LSUA0W04YMLSYEWK3TRYY1QMBMY;'
|
||||
async headers() {
|
||||
const response = await axios
|
||||
.post('https://izmaottvsc14.tvplus.com.tr:33207/EPG/JSON/Authenticate', {
|
||||
terminaltype: 'webtv',
|
||||
terminalvendor:
|
||||
'5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36',
|
||||
osversion: 'Win32',
|
||||
userType: '3',
|
||||
utcEnable: '1',
|
||||
timezone: 'Europe/Istanbul'
|
||||
})
|
||||
.catch(console.error)
|
||||
|
||||
return {
|
||||
cookie: response.headers['set-cookie'].join(';')
|
||||
}
|
||||
},
|
||||
data({ channel, date }) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user