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

This reverts commit e9dbaeaf3b.
This commit is contained in:
knylbyte
2026-05-13 21:57:52 +02:00
parent c4c8b665d4
commit be6c9d1d96
2 changed files with 12 additions and 11 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ async function loadData() {
data.feedsGroupedByChannelId = feeds.groupBy((feed: sdk.Models.Feed) => feed.channel) data.feedsGroupedByChannelId = feeds.groupBy((feed: sdk.Models.Feed) => feed.channel)
const searchableData = channels.map((channel: sdk.Models.Channel) => channel.getSearchable()) 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() { async function downloadData() {
+2 -1
View File
@@ -38,8 +38,9 @@ export class Guide {
toString() { toString() {
const currDate = dayjs.utc(process.env.CURR_DATE || new Date().toISOString()) 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 }) { async save({ logger }: { logger: Logger }) {