Skip to content

Commit

Permalink
fix: invalid rd instant availibility call if no infohashes should be …
Browse files Browse the repository at this point in the history
…checked (#843)
  • Loading branch information
davidemarcoli authored Nov 3, 2024
1 parent 13aa94e commit 19cf38f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/program/services/downloaders/realdebrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ def get_instant_availability(self, infohashes: List[str]) -> Dict[str, list]:
Required by DownloaderBase
"""

if len(infohashes) == 0:
return {}

for attempt in range(self.MAX_RETRIES):
try:
response = self.api._request(
Expand Down

0 comments on commit 19cf38f

Please sign in to comment.