mirror of
https://github.com/iptv-org/epg
synced 2025-12-18 11:27:06 -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
|
||||||
|
```
|
||||||
@@ -13,7 +13,6 @@ module.exports = {
|
|||||||
output: 'taiwanplus.com.guide.xml',
|
output: 'taiwanplus.com.guide.xml',
|
||||||
channels: 'taiwanplus.com.channels.xml',
|
channels: 'taiwanplus.com.channels.xml',
|
||||||
lang: 'en',
|
lang: 'en',
|
||||||
delay: 5000,
|
|
||||||
|
|
||||||
url: function () {
|
url: function () {
|
||||||
return 'https://www.taiwanplus.com/api/video/live/schedule/0'
|
return 'https://www.taiwanplus.com/api/video/live/schedule/0'
|
||||||
@@ -22,11 +21,7 @@ module.exports = {
|
|||||||
request: {
|
request: {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
timeout: 5000,
|
timeout: 5000,
|
||||||
cache: { ttl: 60 * 60 * 1000 }, // 60 * 60 seconds = 1 hour
|
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'
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
logo: function (context) {
|
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 { url, parser } = require('./taiwanplus.com.config.js')
|
||||||
const dayjs = require('dayjs')
|
const dayjs = require('dayjs')
|
||||||
const utc = require('dayjs/plugin/utc')
|
const utc = require('dayjs/plugin/utc')
|
||||||
|
|||||||
Reference in New Issue
Block a user