Update taiwanplus.com

This commit is contained in:
freearhey 2023-11-28 13:48:03 +03:00
parent 659cec1dbd
commit 28ac8c3754
4 changed files with 17 additions and 10 deletions

View file

@ -0,0 +1,15 @@
# taiwanplus.com
https://www.taiwanplus.com/taiwanplustv/schedule
### Download the guide
```sh
npm run grab -- --site=taiwanplus.com
```
### Test
```sh
npm test -- taiwanplus.com
```

View file

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<channels>
<channel site="taiwanplus.com" lang="en" xmltv_id="TaiwanPlusTV.tw" site_id="#">Taiwan Plus TV</channel>
<channel site="taiwanplus.com" lang="en" xmltv_id="TaiwanPlusTV.tw" site_id="#">TaiwanPlus TV</channel>
</channels>

View file

@ -13,7 +13,6 @@ module.exports = {
output: 'taiwanplus.com.guide.xml',
channels: 'taiwanplus.com.channels.xml',
lang: 'en',
delay: 5000,
url: function () {
return 'https://www.taiwanplus.com/api/video/live/schedule/0'
@ -22,11 +21,7 @@ module.exports = {
request: {
method: 'GET',
timeout: 5000,
cache: { ttl: 60 * 60 * 1000 }, // 60 * 60 seconds = 1 hour
headers: {
'User-Agent':
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36'
}
cache: { ttl: 60 * 60 * 1000 } // 60 * 60 seconds = 1 hour
},
logo: function (context) {

View file

@ -1,6 +1,3 @@
// npm run grab -- --site=taiwanplus.com
// npx jest taiwanplus.com.test.js
const { url, parser } = require('./taiwanplus.com.config.js')
const dayjs = require('dayjs')
const utc = require('dayjs/plugin/utc')