mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-09-02 23:54:29 -07:00
feat(anime): remember the default Anime Browser source
- Add `anime.defaultSource` with installed-source fallback - Let the source picker save a source or All sources as default
This commit is contained in:
@@ -79,6 +79,13 @@ export interface AnimeBrowserRuntimeDeps {
|
||||
/** Streams per-source progress while a search invoke is pending. */
|
||||
onSearchUpdate?: (update: AnimeBrowserSearchUpdate, sessionId: string) => void;
|
||||
preferredQuality?: () => string | undefined;
|
||||
/**
|
||||
* Source id (or `all`) a new browser session starts on. Falls back to the
|
||||
* first installed source when unset or no longer installed.
|
||||
*/
|
||||
defaultSourceId?: () => string | undefined;
|
||||
/** Persists the default; absent when the host has no config to write to. */
|
||||
setDefaultSourceId?: (sourceId: string) => void;
|
||||
log: (message: string) => void;
|
||||
/** Overrides process startup in focused runtime tests. */
|
||||
startSidecar?: typeof startSidecar;
|
||||
|
||||
Reference in New Issue
Block a user