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

15
sites/rtp.pt/readme.md Normal file
View File

@ -0,0 +1,15 @@
# rtp.pt
https://www.rtp.pt/tv/
### Download the guide
```sh
npm run grab -- --site=rtp.pt
```
### Test
```sh
npm test -- rtp.pt
```

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
}
})
}
}

View File

@ -1,6 +1,3 @@
// npm run channels:parse -- --config=./sites/rtp.pt/rtp.pt.config.js --output=./sites/rtp.pt/rtp.pt.channels.xml
// npm run grab -- --site=rtp.pt
const { parser, url } = require('./rtp.pt.config.js')
const fs = require('fs')
const path = require('path')