feat: adding hydra debrid

This commit is contained in:
Chubby Granny Chaser
2025-04-09 13:02:22 +01:00
parent 97cf02577a
commit 98ed07d6d2
16 changed files with 186 additions and 4 deletions

View File

@@ -7,6 +7,7 @@ export enum Downloader {
Datanodes,
Mediafire,
TorBox,
Hydra,
}
export enum DownloadSourceStatus {
@@ -56,6 +57,7 @@ export enum DownloadError {
NotCachedInTorbox = "download_error_not_cached_in_torbox",
GofileQuotaExceeded = "download_error_gofile_quota_exceeded",
RealDebridAccountNotAuthorized = "download_error_real_debrid_account_not_authorized",
NotCachedInHydra = "download_error_not_cached_in_hydra",
}
export const FILE_EXTENSIONS_TO_EXTRACT = [".rar", ".zip", ".7z"];

View File

@@ -111,7 +111,12 @@ export const getDownloadersForUri = (uri: string) => {
return [Downloader.RealDebrid];
if (uri.startsWith("magnet:")) {
return [Downloader.Torrent, Downloader.TorBox, Downloader.RealDebrid];
return [
Downloader.Torrent,
Downloader.Hydra,
Downloader.TorBox,
Downloader.RealDebrid,
];
}
return [];