diff --git a/sites/taiwanplus.com/readme.md b/sites/taiwanplus.com/readme.md new file mode 100644 index 00000000..959c7d26 --- /dev/null +++ b/sites/taiwanplus.com/readme.md @@ -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 +``` diff --git a/sites/taiwanplus.com/taiwanplus.com.channels.xml b/sites/taiwanplus.com/taiwanplus.com.channels.xml index 7ff07e56..88416fc1 100644 --- a/sites/taiwanplus.com/taiwanplus.com.channels.xml +++ b/sites/taiwanplus.com/taiwanplus.com.channels.xml @@ -1,4 +1,4 @@ - Taiwan Plus TV + TaiwanPlus TV \ No newline at end of file diff --git a/sites/taiwanplus.com/taiwanplus.com.config.js b/sites/taiwanplus.com/taiwanplus.com.config.js index 745cae58..e65d004b 100644 --- a/sites/taiwanplus.com/taiwanplus.com.config.js +++ b/sites/taiwanplus.com/taiwanplus.com.config.js @@ -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) { diff --git a/sites/taiwanplus.com/taiwanplus.com.test.js b/sites/taiwanplus.com/taiwanplus.com.test.js index dc714227..59f67129 100644 --- a/sites/taiwanplus.com/taiwanplus.com.test.js +++ b/sites/taiwanplus.com/taiwanplus.com.test.js @@ -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')