mirror of
https://github.com/iptv-org/epg
synced 2026-05-07 18:07:05 -04:00
Update tvguide.com.config.js
This commit is contained in:
@@ -100,16 +100,7 @@ module.exports = {
|
|||||||
async channels() {
|
async channels() {
|
||||||
const channels = []
|
const channels = []
|
||||||
try {
|
try {
|
||||||
const data = await axios
|
const data = await axios.get(await this.url({}), { headers }).then(r => r.data)
|
||||||
.get(await this.url({}), {
|
|
||||||
headers,
|
|
||||||
proxy: {
|
|
||||||
protocol: 'http',
|
|
||||||
host: '127.0.0.1',
|
|
||||||
port: 1086
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.then(r => r.data)
|
|
||||||
data.data.items.forEach(item => {
|
data.data.items.forEach(item => {
|
||||||
const name = item.fullName.replace(/Channel|Schedule/g, '').trim()
|
const name = item.fullName.replace(/Channel|Schedule/g, '').trim()
|
||||||
channels.push({
|
channels.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user