Update dsmart.com.tr

This commit is contained in:
Aleksandr Statciuk 2022-02-01 04:53:20 +03:00
parent 2ba75f690d
commit a9ea96f460
2 changed files with 1 additions and 12 deletions

View file

@ -10,11 +10,6 @@ module.exports = {
'YYYY-MM-DD'
)}`
},
logo({ content, channel }) {
const data = parseContent(content, channel)
return data && data.logo ? `https://www.dsmart.com.tr/epg/images/0x50/${data.logo}` : null
},
parser: function ({ content, channel, date }) {
let offset = -1
let programs = []

View file

@ -1,6 +1,6 @@
// npx epg-grabber --config=sites/dsmart.com.tr/dsmart.com.tr.config.js --channels=sites/dsmart.com.tr/dsmart.com.tr_tr.channels.xml --output=guide.xml --timeout=30000 --days=2
const { parser, url, logo } = require('./dsmart.com.tr.config.js')
const { parser, url } = require('./dsmart.com.tr.config.js')
const dayjs = require('dayjs')
const utc = require('dayjs/plugin/utc')
const customParseFormat = require('dayjs/plugin/customParseFormat')
@ -20,12 +20,6 @@ it('can generate valid url', () => {
)
})
it('can get logo url', () => {
expect(logo({ content, channel })).toBe(
'https://www.dsmart.com.tr/epg/images/0x50/59f97253cfef0b75f4723ded'
)
})
it('can parse response', () => {
const result = parser({ date, channel, content })
expect(result).toMatchObject([