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() {
|
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