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

View File

@@ -42,9 +42,9 @@ module.exports = {
return programs
},
async channels({ country, lang }) {
async channels() {
const html = await axios
.get(`https://www.magticom.ge/en/tv/tv-services/tv-guide`)
.get('https://www.magticom.ge/en/tv/tv-services/tv-guide')
.then(r => r.data)
.catch(console.log)
@@ -77,7 +77,9 @@ function parseItems(content) {
let data
try {
data = JSON.parse(content)
} catch (err) {}
} catch (error) {
console.log(error.message)
}
if (!data || !Array.isArray(data)) return []
return data