feat: migrate to jackettio fork

This commit is contained in:
Viren070
2025-04-27 14:10:52 +01:00
parent 6d9be7d062
commit e75ef2fd91
3 changed files with 29 additions and 7 deletions
+15 -2
View File
@@ -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' },
],
},
{
+10 -3
View File
@@ -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)
+4 -2
View File
@@ -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');
};