Skip to content

Commit

Permalink
feat: pack support for alldebrid
Browse files Browse the repository at this point in the history
  • Loading branch information
g0ldyy committed Jul 7, 2024
1 parent 123378f commit 30fe1ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion comet/debrid/alldebrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ async def get_files(
if type == "series":
for file in magnet["files"]:
filename = file["n"]
pack = False
if "e" in file: # PACK
filename = file["e"][0]["n"]
pack = True

if not is_video(filename):
continue
Expand All @@ -89,7 +93,7 @@ async def get_files(
files[magnet["hash"]] = {
"index": magnet["files"].index(file),
"title": filename,
"size": file["s"],
"size": file["e"][0]["s"] if pack else file["s"],
}

continue
Expand Down

0 comments on commit 30fe1ef

Please sign in to comment.