Update rtp.pt

This commit is contained in:
freearhey
2023-11-26 17:22:04 +03:00
parent 85e875575b
commit e4475c79a2
3 changed files with 15 additions and 17 deletions

View File

@@ -45,20 +45,6 @@ module.exports = {
})
return programs
},
async channels() {
const items = await axios
.get('https://www.rtp.pt/EPG/json/rtp-home-page/list-channels/tv')
.then(r => r.data.result)
.catch(console.error)
return items.map(i => {
return {
lang: 'pt',
site_id: i.channel_code,
name: i.channel_name
}
})
}
}