mirror of
https://github.com/Viren070/stremio-gdrive-addon.git
synced 2025-12-01 23:20:04 +01:00
feat: search fullText instead of name for episode formats
name is returning incorrect matches for some reason
This commit is contained in:
@@ -436,7 +436,7 @@ async function buildSearchQuery(streamRequest) {
|
||||
formats.push(...getFormats(zeroPaddedSeason, zeroPaddedEpisode));
|
||||
}
|
||||
|
||||
query += ` and (${formats.map(formatList => `(${formatList.map(format => `name contains '${format}'`).join(" and ")})`).join(" or ")})`;
|
||||
query += ` and (${formats.map(formatList => `(${formatList.map(format => `fullText contains '${format}'`).join(" and ")})`).join(" or ")})`;
|
||||
|
||||
return query;
|
||||
}
|
||||
Reference in New Issue
Block a user