Update tvim.tv
This commit is contained in:
@@ -7,9 +7,6 @@ module.exports = {
|
||||
channel.site_id
|
||||
}&server_time=true`
|
||||
},
|
||||
logo({ channel }) {
|
||||
return `https://mobile-api.tvim.tv/images/channels/120x60px/${channel.site_id}.png`
|
||||
},
|
||||
parser: function ({ content, channel, date }) {
|
||||
let programs = []
|
||||
const items = parseItems(content)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// npx epg-grabber --config=sites/tvim.tv/tvim.tv.config.js --channels=sites/tvim.tv/tvim.tv_xk.channels.xml --days=2 --output=.gh-pages/guides/xk/tvim.tv.epg.xml
|
||||
|
||||
const { parser, url, logo } = require('./tvim.tv.config.js')
|
||||
const { parser, url } = require('./tvim.tv.config.js')
|
||||
const dayjs = require('dayjs')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||
@@ -18,11 +18,6 @@ it('can generate valid url', () => {
|
||||
)
|
||||
})
|
||||
|
||||
it('can get logo url', () => {
|
||||
const result = logo({ channel })
|
||||
expect(result).toBe('https://mobile-api.tvim.tv/images/channels/120x60px/T7.png')
|
||||
})
|
||||
|
||||
it('can parse response', () => {
|
||||
const result = parser({ date, channel, content })
|
||||
expect(result).toMatchObject([
|
||||
|
||||
Reference in New Issue
Block a user