From 30fe1ef6bd97aec5545aa808bf77db9ae4a8d4fa Mon Sep 17 00:00:00 2001 From: Goldy <153996346+g0ldyy@users.noreply.github.com> Date: Sun, 7 Jul 2024 15:45:43 +0200 Subject: [PATCH] feat: pack support for alldebrid --- comet/debrid/alldebrid.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 @@ class AllDebrid: 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 @@ class AllDebrid: files[magnet["hash"]] = { "index": magnet["files"].index(file), "title": filename, - "size": file["s"], + "size": file["e"][0]["s"] if pack else file["s"], } continue