diff --git a/packages/utils/src/details.ts b/packages/utils/src/details.ts index 50ff0b18..0469c992 100644 --- a/packages/utils/src/details.ts +++ b/packages/utils/src/details.ts @@ -300,7 +300,16 @@ export const addonDetails: AddonDetail[] = [ name: 'Jackettio', id: 'jackettio', requiresService: true, - supportedServices: ['realdebrid', 'alldebrid', 'premiumize', 'debridlink'], + supportedServices: [ + 'torbox', + 'easydebrid', + 'realdebrid', + 'debridlink', + 'alldebrid', + 'premiumize', + 'offcloud', + 'pikpak', + ], options: [ { id: 'prioritiseDebrid', @@ -310,10 +319,14 @@ export const addonDetails: AddonDetail[] = [ 'Prioritise a specific debrid service when fetching streams. This option is useful when you want to use a specific debrid service for fetching streams. By default, the addon will make a separate request for each debrid service. I highly recommend provding a value for this option as it will speed up the fetching process and remove redundant results.', type: 'select', options: [ + { value: 'torbox', label: 'Torbox' }, + { value: 'easydebrid', label: 'EasyDebrid' }, { value: 'realdebrid', label: 'Real Debrid' }, + { value: 'debridlink', label: 'Debrid Link' }, { value: 'alldebrid', label: 'All Debrid' }, { value: 'premiumize', label: 'Premiumize' }, - { value: 'debridlink', label: 'Debrid Link' }, + { value: 'offcloud', label: 'Offcloud' }, + { value: 'pikpak', label: 'PikPak' }, ], }, { diff --git a/packages/utils/src/settings.ts b/packages/utils/src/settings.ts index f54655c0..98ccac0b 100644 --- a/packages/utils/src/settings.ts +++ b/packages/utils/src/settings.ts @@ -142,9 +142,16 @@ export class Settings { // Jackettio settings public static readonly JACKETTIO_URL = process.env.JACKETTIO_URL || 'https://jackettio.elfhosted.com/'; - public static readonly JACKETT_INDEXERS = process.env.JACKETT_INDEXERS - ? JSON.parse(process.env.JACKETT_INDEXERS) - : ['bitsearch', 'eztv', 'thepiratebay', 'therarbg', 'yts']; + public static readonly DEFAULT_JACKETTIO_INDEXERS = + process.env.DEFAULT_JACKETTIO_INDEXERS || process.env.JACKETT_INDEXERS + ? JSON.parse( + process.env.DEFAULT_JACKETTIO_INDEXERS || + process.env.JACKETT_INDEXERS! + ) + : ['eztv', 'thepiratebay', 'therarbg', 'yts']; + public static readonly DEFAULT_JACKETTIO_STREMTHRU_URL = + process.env.DEFAULT_JACKETTIO_STREMTHRU_URL || + 'https://stremthru.elfhosted.com'; public static readonly DEFAULT_JACKETTIO_TIMEOUT = process.env .DEFAULT_JACKETTIO_TIMEOUT ? parseInt(process.env.DEFAULT_JACKETTIO_TIMEOUT) diff --git a/packages/wrappers/src/jackettio.ts b/packages/wrappers/src/jackettio.ts index 2aea880f..a276a875 100644 --- a/packages/wrappers/src/jackettio.ts +++ b/packages/wrappers/src/jackettio.ts @@ -40,6 +40,7 @@ const getJackettioConfigString = ( priotizePackTorrents: 2, excludeKeywords: [], debridId: debridService, + debridApiKey: debridApiKey, hideUncached: false, sortCached: [ ['quality', true], @@ -54,9 +55,10 @@ const getJackettioConfigString = ( mediaflowProxyUrl: '', mediaflowApiPassword: '', mediaflowPublicIp: '', + useStremThru: true, + stremthruUrl: Settings.DEFAULT_JACKETTIO_STREMTHRU_URL, qualities: [0, 360, 480, 720, 1080, 2160], - indexers: Settings.JACKETT_INDEXERS, - debridApiKey: debridApiKey, + indexers: Settings.DEFAULT_JACKETTIO_INDEXERS, }) ).toString('base64'); };