mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
feat: migrate to jackettio fork
This commit is contained in:
@@ -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' },
|
||||
],
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user