mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-09 16:40:07 -04:00
Update tv.trueid.net
This commit is contained in:
parent
51f9f99bef
commit
46fa2f0bb7
2 changed files with 1 additions and 13 deletions
|
@ -13,11 +13,6 @@ module.exports = {
|
|||
request: {
|
||||
jar: null
|
||||
},
|
||||
logo: function ({ content, channel }) {
|
||||
const data = parseContent(content, channel)
|
||||
|
||||
return data ? data.logo : null
|
||||
},
|
||||
parser: function ({ content, channel }) {
|
||||
let programs = []
|
||||
const items = parseItems(content, channel)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// NODE_OPTIONS=--insecure-http-parser npx epg-grabber --config=sites/tv.trueid.net/tv.trueid.net.config.js --channels=sites/tv.trueid.net/tv.trueid.net_th.channels.xml --output=guide.xml --timeout=30000 --days=2
|
||||
|
||||
const { parser, url, logo } = require('./tv.trueid.net.config.js')
|
||||
const { parser, url } = require('./tv.trueid.net.config.js')
|
||||
const dayjs = require('dayjs')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||
|
@ -20,13 +20,6 @@ it('can generate valid url', () => {
|
|||
expect(result).toBe('https://tv.trueid.net/tvguide/all/tv-nfl-nba/2021-10-28')
|
||||
})
|
||||
|
||||
it('can get logo url', () => {
|
||||
const result = logo({ content, channel })
|
||||
expect(result).toBe(
|
||||
'https://cms.dmpcdn.com/livetv/2021/09/28/2c9c41c0-203b-11ec-9346-6f50de6452df_webp_original.png'
|
||||
)
|
||||
})
|
||||
|
||||
it('can parse response', () => {
|
||||
const result = parser({ date, channel, content }).map(p => {
|
||||
p.start = p.start.toJSON()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue