mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-26 12:21:03 +00:00
fix: fixing sonar issues
This commit is contained in:
@@ -304,6 +304,12 @@ export class DownloadManager {
|
|||||||
};
|
};
|
||||||
case Downloader.RealDebrid: {
|
case Downloader.RealDebrid: {
|
||||||
const downloadUrl = await RealDebridClient.getDownloadUrl(download.uri);
|
const downloadUrl = await RealDebridClient.getDownloadUrl(download.uri);
|
||||||
|
|
||||||
|
if (!downloadUrl)
|
||||||
|
throw new Error(
|
||||||
|
"This download is not available on Real-Debrid and polling download status from Real-Debrid is not yet available."
|
||||||
|
);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
action: "start",
|
action: "start",
|
||||||
game_id: downloadId,
|
game_id: downloadId,
|
||||||
|
|||||||
Reference in New Issue
Block a user