Skip to content

Commit

Permalink
HotFix empty aviability update
Browse files Browse the repository at this point in the history
  • Loading branch information
LimeDrive committed Sep 28, 2024
1 parent 949d298 commit 5215d63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stream_fusion/utils/torrent/torrent_smart_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ def __save_to_cache(self):
self.logger.info("Caching process completed")

def update_availability(self, debrid_response, debrid_type, media):
if not debrid_response or debrid_response == {} or debrid_response == []:
self.logger.error("Debrid response is empty : " + str(debrid_response))
return
self.logger.info(f"Updating availability for {debrid_type.__name__}")
if debrid_type is RealDebrid:
self.__update_availability_realdebrid(debrid_response, media)
Expand Down

0 comments on commit 5215d63

Please sign in to comment.