mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
feat: add social options to various presets
This commit is contained in:
@@ -15,6 +15,18 @@ export class AnimeKitsuPreset extends Preset {
|
||||
supportedResources,
|
||||
Env.DEFAULT_ANIME_KITSU_TIMEOUT
|
||||
),
|
||||
{
|
||||
id: 'socials',
|
||||
name: '',
|
||||
description: '',
|
||||
type: 'socials',
|
||||
socials: [
|
||||
{
|
||||
id: 'github',
|
||||
url: 'https://github.com/TheBeastLT/stremio-kitsu-anime',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
@@ -82,6 +82,22 @@ export class CometPreset extends Preset {
|
||||
default: undefined,
|
||||
emptyIsUndefined: true,
|
||||
},
|
||||
{
|
||||
id: 'socials',
|
||||
name: '',
|
||||
description: '',
|
||||
type: 'socials',
|
||||
socials: [
|
||||
{
|
||||
id: 'github',
|
||||
url: 'https://github.com/g0ldyy/comet',
|
||||
},
|
||||
{
|
||||
id: 'ko-fi',
|
||||
url: 'https://ko-fi.com/g0ldyy',
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
@@ -75,6 +75,16 @@ export class DcUniversePreset extends Preset {
|
||||
options: this.catalogs,
|
||||
default: this.catalogs.map((catalog) => catalog.value),
|
||||
},
|
||||
{
|
||||
id: 'socials',
|
||||
name: '',
|
||||
description: '',
|
||||
type: 'socials',
|
||||
socials: [
|
||||
{ id: 'github', url: 'https://github.com/tapframe/addon-dc' },
|
||||
{ id: 'buymeacoffee', url: 'https://buymeacoffee.com/tapframe' },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
@@ -4,6 +4,14 @@ import { Env, SERVICE_DETAILS } from '../utils';
|
||||
import { constants, ServiceId } from '../utils';
|
||||
import { StreamParser } from '../parser';
|
||||
|
||||
export const debridioSocialOption: Option = {
|
||||
id: 'socials',
|
||||
name: '',
|
||||
description: '',
|
||||
type: 'socials',
|
||||
socials: [{ id: 'website', url: 'https://debridio.com' }],
|
||||
};
|
||||
|
||||
export class DebridioPreset extends Preset {
|
||||
static override get METADATA() {
|
||||
const supportedServices: ServiceId[] = [constants.EASYDEBRID_SERVICE];
|
||||
@@ -15,6 +23,7 @@ export class DebridioPreset extends Preset {
|
||||
supportedResources,
|
||||
Env.DEFAULT_DEBRIDIO_TIMEOUT
|
||||
),
|
||||
debridioSocialOption,
|
||||
// {
|
||||
// id: 'services',
|
||||
// name: 'Services',
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { Addon, Option, UserData } from '../db';
|
||||
import { Preset, baseOptions } from './preset';
|
||||
import { constants, Env, FULL_LANGUAGE_MAPPING } from '../utils';
|
||||
import { debridioSocialOption } from './debridio';
|
||||
|
||||
export class DebridioTmdbPreset extends Preset {
|
||||
static override get METADATA() {
|
||||
@@ -37,6 +38,7 @@ export class DebridioTmdbPreset extends Preset {
|
||||
})),
|
||||
required: false,
|
||||
},
|
||||
debridioSocialOption,
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { Addon, Option, UserData } from '../db';
|
||||
import { Preset, baseOptions } from './preset';
|
||||
import { constants, Env } from '../utils';
|
||||
import { debridioSocialOption } from './debridio';
|
||||
|
||||
export class DebridioTvPreset extends Preset {
|
||||
static override get METADATA() {
|
||||
@@ -55,6 +56,7 @@ export class DebridioTvPreset extends Preset {
|
||||
options: channels,
|
||||
default: channels.map((channel) => channel.value),
|
||||
},
|
||||
debridioSocialOption,
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { Addon, Option, UserData } from '../db';
|
||||
import { Preset, baseOptions } from './preset';
|
||||
import { constants, Env } from '../utils';
|
||||
import { debridioSocialOption } from './debridio';
|
||||
|
||||
export class DebridioTvdbPreset extends Preset {
|
||||
static override get METADATA() {
|
||||
@@ -23,6 +24,7 @@ export class DebridioTvdbPreset extends Preset {
|
||||
type: 'password',
|
||||
required: true,
|
||||
},
|
||||
debridioSocialOption,
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
@@ -2,6 +2,7 @@ import { Addon, Option, ParsedStream, Stream, UserData } from '../db';
|
||||
import { Preset, baseOptions } from './preset';
|
||||
import { constants, Env } from '../utils';
|
||||
import { FileParser, StreamParser } from '../parser';
|
||||
import { debridioSocialOption } from './debridio';
|
||||
|
||||
class DebridioWatchtowerStreamParser extends StreamParser {
|
||||
parse(stream: Stream): ParsedStream {
|
||||
@@ -86,6 +87,7 @@ export class DebridioWatchtowerPreset extends Preset {
|
||||
type: 'password',
|
||||
required: true,
|
||||
},
|
||||
debridioSocialOption,
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
@@ -95,6 +95,13 @@ export class DMMCastPreset extends Preset {
|
||||
value: resource,
|
||||
})),
|
||||
},
|
||||
{
|
||||
id: 'socials',
|
||||
name: '',
|
||||
description: '',
|
||||
type: 'socials',
|
||||
socials: [{ id: 'website', url: 'https://debridmediamanager.com' }],
|
||||
},
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
@@ -32,6 +32,15 @@ export class DoctorWhoUniversePreset extends Preset {
|
||||
supportedResources,
|
||||
Env.DEFAULT_DOCTOR_WHO_UNIVERSE_TIMEOUT
|
||||
),
|
||||
{
|
||||
id: 'socials',
|
||||
name: '',
|
||||
description: '',
|
||||
type: 'socials',
|
||||
socials: [
|
||||
{ id: 'github', url: 'https://github.com/nubblyn/whoniverse' },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
@@ -30,6 +30,26 @@ export class EasynewsPlusPreset extends EasynewsPreset {
|
||||
],
|
||||
Env.DEFAULT_EASYNEWS_PLUS_TIMEOUT || Env.DEFAULT_TIMEOUT
|
||||
),
|
||||
{
|
||||
id: 'socials',
|
||||
name: '',
|
||||
description: '',
|
||||
type: 'socials',
|
||||
socials: [
|
||||
{
|
||||
id: 'github',
|
||||
url: 'https://github.com/sleeyax/stremio-easynews-addon',
|
||||
},
|
||||
{
|
||||
id: 'patreon',
|
||||
url: 'https://patreon.com/sleeyax',
|
||||
},
|
||||
{
|
||||
id: 'buymeacoffee',
|
||||
url: 'https://buymeacoffee.com/sleeyax',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -58,6 +58,22 @@ export class EasynewsPlusPlusPreset extends EasynewsPreset {
|
||||
required: true,
|
||||
default: false,
|
||||
},
|
||||
{
|
||||
id: 'socials',
|
||||
name: '',
|
||||
description: '',
|
||||
type: 'socials',
|
||||
socials: [
|
||||
{
|
||||
id: 'github',
|
||||
url: 'https://github.com/panteLx/easynews-plus-plus',
|
||||
},
|
||||
{
|
||||
id: 'buymeacoffee',
|
||||
url: 'https://buymeacoffee.com/pantel',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -71,6 +71,15 @@ export class JackettioPreset extends Preset {
|
||||
default: undefined,
|
||||
emptyIsUndefined: true,
|
||||
},
|
||||
{
|
||||
id: 'socials',
|
||||
name: '',
|
||||
description: '',
|
||||
type: 'socials',
|
||||
socials: [
|
||||
{ id: 'github', url: 'https://github.com/Telkaoss/jackettio' },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
@@ -51,6 +51,16 @@ export class MarvelPreset extends Preset {
|
||||
options: this.catalogs,
|
||||
default: this.catalogs.map((catalog) => catalog.value),
|
||||
},
|
||||
{
|
||||
id: 'socials',
|
||||
name: '',
|
||||
description: '',
|
||||
type: 'socials',
|
||||
socials: [
|
||||
{ id: 'github', url: 'https://github.com/joaogonp/addon-marvel' },
|
||||
{ id: 'buymeacoffee', url: 'https://buymeacoffee.com/joaogonp' },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
@@ -222,6 +222,15 @@ export class MediaFusionPreset extends Preset {
|
||||
default: undefined,
|
||||
emptyIsUndefined: true,
|
||||
},
|
||||
{
|
||||
id: 'socials',
|
||||
name: '',
|
||||
description: '',
|
||||
type: 'socials',
|
||||
socials: [
|
||||
{ id: 'github', url: 'https://github.com/mhdzumair/MediaFusion' },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
@@ -139,6 +139,16 @@ export class NuvioStreamsPreset extends Preset {
|
||||
required: false,
|
||||
default: true,
|
||||
},
|
||||
{
|
||||
id: 'socials',
|
||||
name: '',
|
||||
description: '',
|
||||
type: 'socials',
|
||||
socials: [
|
||||
{ id: 'github', url: 'https://github.com/tapframe/NuvioStreaming' },
|
||||
{ id: 'ko-fi', url: 'https://ko-fi.com/tapframe' },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
@@ -78,6 +78,16 @@ export class StarWarsUniversePreset extends Preset {
|
||||
options: this.catalogs,
|
||||
default: this.catalogs.map((catalog) => catalog.value),
|
||||
},
|
||||
{
|
||||
id: 'socials',
|
||||
name: '',
|
||||
description: '',
|
||||
type: 'socials',
|
||||
socials: [
|
||||
{ id: 'github', url: 'https://github.com/tapframe/addon-star-wars' },
|
||||
{ id: 'ko-fi', url: 'https://ko-fi.com/tapframe' },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
@@ -95,6 +95,19 @@ export class StreamFusionPreset extends Preset {
|
||||
default: undefined,
|
||||
emptyIsUndefined: true,
|
||||
},
|
||||
{
|
||||
id: 'socials',
|
||||
name: '',
|
||||
description: '',
|
||||
type: 'socials',
|
||||
socials: [
|
||||
{
|
||||
id: 'github',
|
||||
url: 'https://github.com/Telkaoss/stream-fusion',
|
||||
},
|
||||
{ id: 'discord', url: 'https://discord.gg/ZhWvKVmTuh' },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
@@ -115,6 +115,19 @@ export class StreamingCatalogsPreset extends Preset {
|
||||
options: this.catalogs,
|
||||
default: ['nfx', 'hbm', 'dnp', 'amp', 'atp'],
|
||||
},
|
||||
{
|
||||
id: 'socials',
|
||||
name: '',
|
||||
description: '',
|
||||
type: 'socials',
|
||||
socials: [
|
||||
{
|
||||
id: 'github',
|
||||
url: 'https://github.com/rleroi/Stremio-Streaming-Catalogs-Addon',
|
||||
},
|
||||
{ id: 'ko-fi', url: 'https://ko-fi.com/rab1t' },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
@@ -49,6 +49,20 @@ export class StremthruStorePreset extends Preset {
|
||||
description: 'Enable web DL',
|
||||
type: 'boolean',
|
||||
},
|
||||
{
|
||||
id: 'socials',
|
||||
name: '',
|
||||
description: '',
|
||||
type: 'socials',
|
||||
socials: [
|
||||
{
|
||||
id: 'github',
|
||||
url: 'https://github.com/MunifTanjim/stremthru',
|
||||
},
|
||||
{ id: 'buymeacoffee', url: 'https://buymeacoffee.com/muniftanjim' },
|
||||
{ id: 'patreon', url: 'https://patreon.com/MunifTanjim' },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
@@ -61,6 +61,20 @@ export class StremthruTorzPreset extends Preset {
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
},
|
||||
{
|
||||
id: 'socials',
|
||||
name: '',
|
||||
description: '',
|
||||
type: 'socials',
|
||||
socials: [
|
||||
{
|
||||
id: 'github',
|
||||
url: 'https://github.com/MunifTanjim/stremthru',
|
||||
},
|
||||
{ id: 'buymeacoffee', url: 'https://buymeacoffee.com/muniftanjim' },
|
||||
{ id: 'patreon', url: 'https://patreon.com/MunifTanjim' },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
@@ -51,6 +51,16 @@ export class TmdbCollectionsPreset extends Preset {
|
||||
})),
|
||||
required: false,
|
||||
},
|
||||
// https://github.com/youchi1/tmdb-collections/
|
||||
{
|
||||
id: 'socials',
|
||||
name: '',
|
||||
description: '',
|
||||
type: 'socials',
|
||||
socials: [
|
||||
{ id: 'github', url: 'https://github.com/youchi1/tmdb-collections' },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
@@ -89,6 +89,13 @@ export class TorboxAddonPreset extends Preset {
|
||||
|
||||
const options: Option[] = [
|
||||
...baseOptions('TorBox', supportedResources, Env.DEFAULT_TORBOX_TIMEOUT),
|
||||
{
|
||||
id: 'socials',
|
||||
name: '',
|
||||
description: '',
|
||||
type: 'socials',
|
||||
socials: [{ id: 'website', url: 'https://torbox.app' }],
|
||||
},
|
||||
];
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user