fix: fixing sonar issues

This commit is contained in:
Chubby Granny Chaser 2025-01-22 10:08:52 +00:00
parent bfd54d5a3a
commit dcd16346ab
No known key found for this signature in database

View file

@ -304,6 +304,12 @@ export class DownloadManager {
};
case Downloader.RealDebrid: {
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 {
action: "start",
game_id: downloadId,