mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: apply filters and precomputation to streams after each group fetch
This commit is contained in:
@@ -132,13 +132,13 @@ ${errorStreams.length > 0 ? ` ❌ Errors : ${errorStreams.map((s) => `
|
||||
const finalStreams = results.flatMap((r) =>
|
||||
r.success ? r.streams : []
|
||||
) as ParsedStream[];
|
||||
// const filteredStreams = await this.filter.filter(finalStreams, type, id);
|
||||
// await this.precompute.precompute(filteredStreams);
|
||||
const filteredStreams = await this.filter.filter(finalStreams, type, id);
|
||||
await this.precompute.precompute(filteredStreams);
|
||||
const groupTime = Date.now() - groupStart;
|
||||
return {
|
||||
// results,
|
||||
totalTime: groupTime,
|
||||
streams: finalStreams,
|
||||
streams: filteredStreams,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user