mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update dsmart.com.tr
This commit is contained in:
parent
2ba75f690d
commit
a9ea96f460
2 changed files with 1 additions and 12 deletions
|
@ -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 = []
|
||||
|
|
|
@ -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([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue