Update /sites

This commit is contained in:
freearhey
2023-10-02 06:35:33 +03:00
parent ca254a6df0
commit c0cfcf7a47
543 changed files with 30781 additions and 31187 deletions
+2 -2
View File
@@ -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)