diff --git a/packages/core/src/presets/aiostreams.ts b/packages/core/src/presets/aiostreams.ts index 971c8e5d..22b3e9ce 100644 --- a/packages/core/src/presets/aiostreams.ts +++ b/packages/core/src/presets/aiostreams.ts @@ -140,6 +140,46 @@ export class AIOStreamsPreset extends Preset { ], default: [], }, + { + id: 'libraryAddon', + name: 'Library Addon', + description: + 'Whether to mark this addon as a library addon. This will result in all streams from this addon being marked as library streams.', + type: 'boolean', + required: false, + showInSimpleMode: false, + default: false, + }, + { + id: 'formatPassthrough', + name: 'Format Passthrough', + description: + 'Whether to pass through the stream formatting. This means your formatting will not be applied and original stream formatting is retained.', + type: 'boolean', + required: false, + default: false, + showInSimpleMode: false, + }, + { + id: 'resultPassthrough', + name: 'Result Passthrough', + description: + 'If enabled, all results from this addon will never be filtered out and always included in the final stream list.', + type: 'boolean', + required: false, + default: false, + showInSimpleMode: false, + }, + { + id: 'forceToTop', + name: 'Force to Top', + description: + 'Whether to force results from this addon to be pushed to the top of the stream list.', + type: 'boolean', + required: false, + default: false, + showInSimpleMode: false, + }, ]; return { @@ -178,9 +218,12 @@ export class AIOStreamsPreset extends Preset { name: options.name ?? this.METADATA.NAME, manifestUrl: options.manifestUrl.replace('stremio://', 'https://'), enabled: true, - library: false, + library: options.libraryAddon ?? false, resources: options.resources || undefined, timeout: options.timeout || this.METADATA.TIMEOUT, + resultPassthrough: options.resultPassthrough ?? false, + formatPassthrough: options.formatPassthrough ?? false, + forceToTop: options.forceToTop ?? false, mediaTypes: options.mediaTypes || [], preset: { id: '',