Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/core/src/debrid/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export * from './stremthru.js';
export * from './torbox.js';
export * from './nzbdav.js';
export * from './altmount.js';
export * from './torrserver.js';

import { ServiceId } from '../utils/index.js';
import { DebridService, DebridServiceConfig } from './base.js';
Expand All @@ -14,6 +15,7 @@ import { NzbDAVService } from './nzbdav.js';
import { AltmountService } from './altmount.js';
import { StremioNNTPService } from './stremio-nntp.js';
import { EasynewsService } from './easynews.js';
import { TorrServerDebridService } from './torrserver.js';

export function getDebridService(
serviceName: ServiceId,
Expand All @@ -36,6 +38,8 @@ export function getDebridService(
return new StremioNNTPService(config);
case 'easynews':
return new EasynewsService(config);
case 'torrserver':
return new TorrServerDebridService(config);
default:
if (StremThruPreset.supportedServices.includes(serviceName)) {
return new StremThruInterface({ ...config, serviceName });
Expand Down
Loading