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() {
|
||||
const channels = []
|
||||
try {
|
||||
const data = await axios
|
||||
.get(await this.url({}), {
|
||||
headers,
|
||||
proxy: {
|
||||
protocol: 'http',
|
||||
host: '127.0.0.1',
|
||||
port: 1086
|
||||
}
|
||||
})
|
||||
.then(r => r.data)
|
||||
const data = await axios.get(await this.url({}), { headers }).then(r => r.data)
|
||||
data.data.items.forEach(item => {
|
||||
const name = item.fullName.replace(/Channel|Schedule/g, '').trim()
|
||||
channels.push({
|
||||
|
||||
Reference in New Issue
Block a user