Skip to content

Commit 19cf38f

Browse files
fix: invalid rd instant availibility call if no infohashes should be checked (#843)
1 parent 13aa94e commit 19cf38f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/program/services/downloaders/realdebrid.py

+3
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ def get_instant_availability(self, infohashes: List[str]) -> Dict[str, list]:
130130
Required by DownloaderBase
131131
"""
132132

133+
if len(infohashes) == 0:
134+
return {}
135+
133136
for attempt in range(self.MAX_RETRIES):
134137
try:
135138
response = self.api._request(

0 commit comments

Comments
 (0)