mirror of
https://github.com/iptv-org/epg
synced 2026-05-07 18:07:05 -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 dayjs = require('dayjs')
|
||||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||||
|
|
||||||
@@ -9,8 +10,22 @@ module.exports = {
|
|||||||
url: 'https://izmaottvsc14.tvplus.com.tr:33207/EPG/JSON/PlayBillList',
|
url: 'https://izmaottvsc14.tvplus.com.tr:33207/EPG/JSON/PlayBillList',
|
||||||
request: {
|
request: {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
async headers() {
|
||||||
cookie: 'JSESSIONID=05DH3LSUA0W04YMLSYEWK3TRYY1QMBMY;'
|
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 }) {
|
data({ channel, date }) {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user