mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: use select-with-custom for newznab url and hide some options in simple mode
This commit is contained in:
@@ -24,7 +24,24 @@ export class NewznabPreset extends BuiltinAddonPreset {
|
||||
id: 'newznabUrl',
|
||||
name: 'Newznab URL',
|
||||
description: 'Provide the URL to the Newznab endpoint ',
|
||||
type: 'url',
|
||||
type: 'select-with-custom',
|
||||
options: [
|
||||
{ label: 'altHUB', value: 'https://api.althub.co.za' },
|
||||
{
|
||||
label: 'AnimeTosho (Newznab)',
|
||||
value: 'https://feed.animetosho.org/',
|
||||
},
|
||||
{ label: 'DOGnzb', value: 'https://api.dognzb.cr/' },
|
||||
{ label: 'DrunkenSlug', value: 'https://drunkenslug.com/' },
|
||||
{ label: 'Miatrix', value: 'https://www.miatrix.com' },
|
||||
{ label: 'NinjaCentral', value: 'https://ninjacentral.co.za/' },
|
||||
{ label: 'NZBgeek', value: 'https://nzbgeek.info/' },
|
||||
{
|
||||
label: 'Tabula Rasa',
|
||||
value: 'https://www.tabula-rasa.pw/api/v1/ ',
|
||||
},
|
||||
{ label: 'usenet-crawler', value: 'https://usenetcrawler.com/' },
|
||||
],
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
@@ -42,6 +59,7 @@ export class NewznabPreset extends BuiltinAddonPreset {
|
||||
type: 'string',
|
||||
required: false,
|
||||
default: '/api',
|
||||
showInSimpleMode: false,
|
||||
},
|
||||
{
|
||||
id: 'proxyAuth',
|
||||
@@ -118,6 +136,7 @@ export class NewznabPreset extends BuiltinAddonPreset {
|
||||
type: 'select',
|
||||
required: false,
|
||||
default: 'auto',
|
||||
showInSimpleMode: false,
|
||||
options: [
|
||||
{ label: 'Auto', value: 'auto' },
|
||||
{ label: 'Forced Query', value: 'query' },
|
||||
|
||||
@@ -97,6 +97,7 @@ export class NZBHydraPreset extends NewznabPreset {
|
||||
'The search mode to use when querying the Torznab endpoint. **Note**: `Both` will result in two addons being created, one for each search mode.',
|
||||
type: 'select',
|
||||
required: false,
|
||||
showInSimpleMode: false,
|
||||
default: 'query',
|
||||
options: [
|
||||
{ label: 'Auto', value: 'auto' },
|
||||
|
||||
@@ -37,6 +37,7 @@ export class TorznabPreset extends BuiltinAddonPreset {
|
||||
description: 'The path to the Torznab API. Usually /api.',
|
||||
type: 'string',
|
||||
required: false,
|
||||
showInSimpleMode: false,
|
||||
default: '/api',
|
||||
},
|
||||
{
|
||||
@@ -105,6 +106,7 @@ export class TorznabPreset extends BuiltinAddonPreset {
|
||||
'The search mode to use when querying the Torznab endpoint. **Note**: `Both` will result in two addons being created, one for each search mode.',
|
||||
type: 'select',
|
||||
required: false,
|
||||
showInSimpleMode: false,
|
||||
default: 'auto',
|
||||
options: [
|
||||
{ label: 'Auto', value: 'auto' },
|
||||
|
||||
Reference in New Issue
Block a user