Update programetv.ro

This commit is contained in:
freearhey
2023-11-26 13:27:40 +03:00
parent 719799f92a
commit 5bff0e7662
4 changed files with 370 additions and 233 deletions

View File

@@ -45,6 +45,21 @@ module.exports = {
})
return programs
},
async channels({ country, lang }) {
const axios = require('axios')
const data = await axios
.get(`https://www.programetv.ro/api/station/index/`)
.then(r => r.data)
.catch(console.log)
return data.map(item => {
return {
lang: 'ro',
site_id: item.slug,
name: item.displayName
}
})
}
}