fix syn.is naming parse (possible next.js workaround)

This commit is contained in:
theofficialomega
2026-02-20 14:27:38 +01:00
parent 4b80b78ac2
commit b278f97655
3 changed files with 34 additions and 22 deletions

View File

@@ -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')