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
+1 -1
View File
@@ -27,7 +27,7 @@ async function loadData() {
data.feedsGroupedByChannelId = feeds.groupBy((feed: sdk.Models.Feed) => feed.channel)
const searchableData = channels.map((channel: sdk.Models.Channel) => channel.getSearchable())
searchIndex = sdk.SearchEngine.createIndex<sdk.Types.ChannelSearchableData>(searchableData.all())
searchIndex = sdk.SearchEngine.createIndex<sdk.Types.ChannelSearchableData>(searchableData)
}
async function downloadData() {
+1 -2
View File
@@ -38,9 +38,8 @@ export class Guide {
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)
return EPGGrabber.generateXMLTV(this.channels.all(), this.programs.all(), currDate)
}
async save({ logger }: { logger: Logger }) {