Revert "fix: repair shared api search index and xmltv export"

This reverts commit e9dbaeaf3b.
This commit is contained in:
knylbyte committed 2026-05-13 21:57:52 +02:00
1 parent c4c8b665d4
commit be6c9d1d96
2 files changed
+3 -2

No files matched your search

+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)
searchIndex = sdk.SearchEngine.createIndex<sdk.Types.ChannelSearchableData>(searchableData.all())
}
async function downloadData() {
+2 -1
View File
@@ -38,8 +38,9 @@ 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(), currDate)
return EPGGrabber.generateXMLTV(this.channels.all(), this.programs.all(), headers)
}
async save({ logger }: { logger: Logger }) {