Skip to content

Commit

Permalink
Update rtp.pt
Browse files Browse the repository at this point in the history
  • Loading branch information
freearhey committed Nov 26, 2023
1 parent 85e8755 commit e4475c7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
15 changes: 15 additions & 0 deletions sites/rtp.pt/readme.md
Original file line number Diff line number Diff line change
@@ -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
```
14 changes: 0 additions & 14 deletions sites/rtp.pt/rtp.pt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
})
}
}

Expand Down
3 changes: 0 additions & 3 deletions sites/rtp.pt/rtp.pt.test.js
Original file line number Diff line number Diff line change
@@ -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')
Expand Down

0 comments on commit e4475c7

Please sign in to comment.