mirror of
https://github.com/iptv-org/epg
synced 2026-04-26 04:27:02 -04:00
fix syn.is naming parse (possible next.js workaround)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const { parser, url } = require('./stod2.is.config.js')
|
||||
const { parser, url } = require('./syn.is.config.js')
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
const dayjs = require('dayjs')
|
||||
@@ -12,7 +12,7 @@ dayjs.extend(timezone)
|
||||
|
||||
const date = dayjs.utc('2025-01-03', 'YYYY-MM-DD').startOf('day')
|
||||
const channel = { site_id: 'stod2', xmltv_id: 'Stod2.is' }
|
||||
|
||||
|
||||
it('can generate valid url', () => {
|
||||
const generatedUrl = url({ date, channel })
|
||||
expect(generatedUrl).toBe('https://www.syn.is/api/epg/stod2/2025-01-03')
|
||||
|
||||
Reference in New Issue
Block a user