mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix(presets/streamfusion): add option to disable public torrent cache server
This commit is contained in:
@@ -28,21 +28,6 @@ export class StreamFusionPreset extends Preset {
|
||||
supportedResources,
|
||||
Env.DEFAULT_STREAMFUSION_TIMEOUT
|
||||
),
|
||||
{
|
||||
id: 'mediaTypes',
|
||||
name: 'Media Types',
|
||||
description:
|
||||
'Limits this addon to the selected media types for streams. For example, selecting "Movie" means this addon will only be used for movie streams (if the addon supports them). Leave empty to allow all.',
|
||||
type: 'multi-select',
|
||||
required: false,
|
||||
showInSimpleMode: false,
|
||||
options: [
|
||||
{ label: 'Movie', value: 'movie' },
|
||||
{ label: 'Series', value: 'series' },
|
||||
{ label: 'Anime', value: 'anime' },
|
||||
],
|
||||
default: [],
|
||||
},
|
||||
{
|
||||
id: 'streamFusionApiKey',
|
||||
name: 'StreamFusion API Key',
|
||||
@@ -51,6 +36,15 @@ export class StreamFusionPreset extends Preset {
|
||||
type: 'password',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
id: 'usePublicTorrentCacheServer',
|
||||
name: 'Use Public Torrent Cache Server',
|
||||
description:
|
||||
'For faster results, you can use the public torrent cache server. Only historiacl public torrents from stremio-jackett will be cached on it. Disable this for results from other sources.',
|
||||
type: 'boolean',
|
||||
required: false,
|
||||
default: false,
|
||||
},
|
||||
{
|
||||
id: 'torboxSearch',
|
||||
name: 'Torbox Search',
|
||||
@@ -112,7 +106,21 @@ export class StreamFusionPreset extends Preset {
|
||||
default: undefined,
|
||||
emptyIsUndefined: true,
|
||||
},
|
||||
|
||||
{
|
||||
id: 'mediaTypes',
|
||||
name: 'Media Types',
|
||||
description:
|
||||
'Limits this addon to the selected media types for streams. For example, selecting "Movie" means this addon will only be used for movie streams (if the addon supports them). Leave empty to allow all.',
|
||||
type: 'multi-select',
|
||||
required: false,
|
||||
showInSimpleMode: false,
|
||||
options: [
|
||||
{ label: 'Movie', value: 'movie' },
|
||||
{ label: 'Series', value: 'series' },
|
||||
{ label: 'Anime', value: 'anime' },
|
||||
],
|
||||
default: [],
|
||||
},
|
||||
{
|
||||
id: 'socials',
|
||||
name: '',
|
||||
@@ -271,7 +279,7 @@ export class StreamFusionPreset extends Preset {
|
||||
minCachedResults: 10,
|
||||
exclusion: [],
|
||||
cacheUrl: 'https://stremio-jackett-cacher.elfhosted.com/',
|
||||
cache: true,
|
||||
cache: options.usePublicTorrentCacheServer ?? true,
|
||||
zilean: true,
|
||||
yggflix: true,
|
||||
sharewood: true,
|
||||
|
||||
Reference in New Issue
Block a user