mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-18 08:43:57 +00:00
feat: adding hydra debrid
This commit is contained in:
@@ -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"];
|
||||
|
||||
@@ -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 [];
|
||||
|
||||
Reference in New Issue
Block a user