Skip to content

Commit

Permalink
fix: shit fix before easydebrid new api
Browse files Browse the repository at this point in the history
  • Loading branch information
g0ldyy committed Nov 27, 2024
1 parent e40163f commit 979c85d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions comet/debrid/easydebrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,11 @@ async def get_files(self, torrent_hashes, type, season, episode, kitsu):
for index, (is_cached, hash) in enumerate(zip(responses, hashes)):
if not is_cached:
continue

hash_files = filenames[str(index)]

try:
hash_files = filenames[index]
except:
hash_files = filenames[str(index)]

for filename in hash_files:
if not is_video(filename):
Expand Down Expand Up @@ -124,7 +127,10 @@ async def get_files(self, torrent_hashes, type, season, episode, kitsu):
if not is_cached:
continue

hash_files = filenames[index]
try:
hash_files = filenames[index]
except:
hash_files = filenames[str(index)]

video_files = [f for f in hash_files if is_video(f)]
if not video_files:
Expand Down

0 comments on commit 979c85d

Please sign in to comment.