mirror of
https://github.com/iptv-org/epg
synced 2026-05-21 08:44:57 -04:00
fix: repair shared api search index and xmltv export
This commit is contained in:
@@ -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.all())
|
searchIndex = sdk.SearchEngine.createIndex<sdk.Types.ChannelSearchableData>(searchableData)
|
||||||
}
|
}
|
||||||
|
|
||||||
async function downloadData() {
|
async function downloadData() {
|
||||||
|
|||||||
@@ -38,9 +38,8 @@ 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(), headers)
|
return EPGGrabber.generateXMLTV(this.channels.all(), this.programs.all(), currDate)
|
||||||
}
|
}
|
||||||
|
|
||||||
async save({ logger }: { logger: Logger }) {
|
async save({ logger }: { logger: Logger }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user