mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Update rtp.pt
This commit is contained in:
parent
85e875575b
commit
e4475c79a2
3 changed files with 15 additions and 17 deletions
15
sites/rtp.pt/readme.md
Normal file
15
sites/rtp.pt/readme.md
Normal 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
|
||||||
|
```
|
|
@ -45,20 +45,6 @@ module.exports = {
|
||||||
})
|
})
|
||||||
|
|
||||||
return programs
|
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
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 { parser, url } = require('./rtp.pt.config.js')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue