Update rtp.pt
This commit is contained in:
1 parent
85e875575b
commit
e4475c79a2
3 files changed
+15
-17
No files matched your search
@@ -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
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user