mirror of
https://github.com/iptv-org/epg
synced 2025-12-16 10:26:41 -05:00
Update taiwanplus.com
This commit is contained in:
15
sites/taiwanplus.com/readme.md
Normal file
15
sites/taiwanplus.com/readme.md
Normal 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
|
||||
```
|
||||
@@ -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>
|
||||
@@ -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) {
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user