mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-11 09:30:06 -04:00
Update ipko.com
This commit is contained in:
parent
de1a0711f4
commit
064a4ec350
3 changed files with 38 additions and 46 deletions
|
@ -1,6 +1,6 @@
|
|||
// npx epg-grabber --config=sites/ipko.com/ipko.com.config.js --channels=sites/ipko.com/ipko.com_al.channels.xml --days=2 --output=.gh-pages/guides/al/ipko.com.epg.xml
|
||||
|
||||
const { parser, url, logo } = require('./ipko.com.config.js')
|
||||
const { parser, url } = require('./ipko.com.config.js')
|
||||
const dayjs = require('dayjs')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
const customParseFormat = require('dayjs/plugin/customParseFormat')
|
||||
|
@ -10,8 +10,7 @@ dayjs.extend(utc)
|
|||
const date = dayjs.utc('2021-10-24', 'YYYY-MM-DD').startOf('d')
|
||||
const channel = {
|
||||
site_id: '406',
|
||||
xmltv_id: 'RTK1.rs',
|
||||
logo: 'https://www.ipko.com/epg/logo/stinet.png'
|
||||
xmltv_id: 'RTK1.rs'
|
||||
}
|
||||
const content = `{"element":{"1":[{"id":6367,"channel_id":406,"program_name":"Beautiful People 13","name_short":"","description":"Lin largohet nga Nju Meksiko për t'u vendosur në Nju Jork e për t'ia nisur nga fillimi: një punë të re, shtëpi të re dhe njohje të reja. Bashkë me të janë vajzat e saj, Sofia, një 16 vjeçare që shkëlqen në shkollë, dhe Kareni, 20 vjeçare, që do të bë","category":"Sezoni I","duration":150,"day":"Sun","left_distanc":165,"date":"00:55:00"}]}}`
|
||||
|
||||
|
@ -20,10 +19,6 @@ it('can generate valid url', () => {
|
|||
expect(result).toBe('https://www.ipko.com/epg/admin/programs.php?date=2021-10-24')
|
||||
})
|
||||
|
||||
it('can get logo url', () => {
|
||||
expect(logo({ channel })).toBe('https://www.ipko.com/epg/logo/stinet.png')
|
||||
})
|
||||
|
||||
it('can parse response', () => {
|
||||
const result = parser({ date, channel, content })
|
||||
expect(result).toMatchObject([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue