mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 02:16:40 -05:00
Fix linter issues in sites/
This commit is contained in:
@@ -29,11 +29,11 @@ module.exports = {
|
||||
async channels() {
|
||||
const axios = require('axios')
|
||||
const html = await axios
|
||||
.get(`https://watch.sportsnet.ca/schedule/tvlistings`)
|
||||
.get('https://watch.sportsnet.ca/schedule/tvlistings')
|
||||
.then(r => r.data)
|
||||
.catch(console.log)
|
||||
|
||||
let [, __data] = html.match(/window\.__data \= ([^<]+)<\/script>/)
|
||||
let [, __data] = html.match(/window\.__data = ([^<]+)<\/script>/)
|
||||
const func = new Function(`"use strict";return ${__data}`)
|
||||
const data = func()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user