Expose exact music filters in desktop and local agent clients
This commit is contained in:
1 parent
2eace15a33
commit
c33047998b
6 files changed
+263
-35
No files matched your search
@@ -11,6 +11,16 @@ export function scopedFilters(
|
||||
return Object.freeze({ ...filters, code_only: scope === "code" });
|
||||
}
|
||||
|
||||
/** Exact music metadata can be searched without embedding an empty query. */
|
||||
export function hasSearchInput(query: string, filters: SearchFilters): boolean {
|
||||
return Boolean(
|
||||
query.trim() ||
|
||||
(typeof filters.media_artist === "string" &&
|
||||
filters.media_artist.trim()) ||
|
||||
(typeof filters.media_title === "string" && filters.media_title.trim()),
|
||||
);
|
||||
}
|
||||
|
||||
/** Let rapid typing settle before starting the model lane. */
|
||||
export const SEMANTIC_SETTLE_MS = 120;
|
||||
|
||||
|
||||
Reference in new issue
Block a user