mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 10:33:25 +00:00
Update src/runners/runner.ts
Co-authored-by: Jip Frijlink <jipfrijlink@gmail.com>
This commit is contained in:
@@ -117,8 +117,7 @@ export async function runAllProviders(list: ProviderList, ops: ProviderRunnerOpt
|
||||
}
|
||||
|
||||
// run embed scrapers on listed embeds
|
||||
const sortedEmbeds = output.embeds;
|
||||
sortedEmbeds.sort((a, b) => embedIds.indexOf(a.embedId) - embedIds.indexOf(b.embedId));
|
||||
const sortedEmbeds = output.embeds.sort((a, b) => embedIds.indexOf(a.embedId) - embedIds.indexOf(b.embedId));
|
||||
|
||||
if (sortedEmbeds.length > 0) {
|
||||
ops.events?.discoverEmbeds?.({
|
||||
|
Reference in New Issue
Block a user