fix: repair shared api search index and xmltv export

This commit is contained in:
knylbyte
2026-05-13 19:45:12 +02:00
parent 42092cc462
commit e9dbaeaf3b
2 changed files with 11 additions and 12 deletions

View File

@@ -36,12 +36,11 @@ export class Guide {
this.channels.add(channel)
}
toString() {
const currDate = dayjs.utc(process.env.CURR_DATE || new Date().toISOString())
const headers = { date: currDate.format('YYYYMMDD') }
return EPGGrabber.generateXMLTV(this.channels.all(), this.programs.all(), headers)
}
toString() {
const currDate = dayjs.utc(process.env.CURR_DATE || new Date().toISOString())
return EPGGrabber.generateXMLTV(this.channels.all(), this.programs.all(), currDate)
}
async save({ logger }: { logger: Logger }) {
const dir = path.dirname(this.filepath)