mirror of
https://github.com/iptv-org/epg
synced 2026-09-10 22:06:56 -04:00
Update /sites
This commit is contained in:
@@ -48,11 +48,11 @@ module.exports = {
|
||||
},
|
||||
async channels() {
|
||||
const data = await axios
|
||||
.get(`http://www.tvmusor.hu/most/`)
|
||||
.get('http://www.tvmusor.hu/most/')
|
||||
.then(r => r.data)
|
||||
.catch(console.log)
|
||||
|
||||
const [_, channelData] = data.match(/const CHANNEL_DATA = (.*);/)
|
||||
const [, channelData] = data.match(/const CHANNEL_DATA = (.*);/)
|
||||
const json = channelData.replace('},}', '}}').replace(/(\d+):/g, '"$1":')
|
||||
const channels = JSON.parse(json)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user