Update tvguide.com.config.js
This commit is contained in:
1 parent
8602f8e430
commit
6f5dc6a673
1 file changed
+1
-10
@@ -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