diff --git a/comet/debrid/alldebrid.py b/comet/debrid/alldebrid.py index 47a344d..e428b76 100644 --- a/comet/debrid/alldebrid.py +++ b/comet/debrid/alldebrid.py @@ -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 @@ -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