mirror of
https://github.com/iptv-org/epg
synced 2026-05-16 06:14:55 -04:00
fix: repair shared api search index and xmltv export
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user