From c15206b4b410fc685fbbcd7f31df574553ca6cd5 Mon Sep 17 00:00:00 2001 From: Bhanu Date: Tue, 12 Nov 2024 23:04:53 -0800 Subject: [PATCH] fix: update hashinfo --- comet/utils/general.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/comet/utils/general.py b/comet/utils/general.py index fd7e5aa..849af6a 100644 --- a/comet/utils/general.py +++ b/comet/utils/general.py @@ -442,15 +442,10 @@ async def get_mediafusion(log_name: str, type: str, full_id: str): for torrent in get_mediafusion ["streams"]: description = torrent.get("description", None) - if not description: continue - url = torrent.get("url", "") - info_hash = None - if "info_hash=" in url: - info_hash = url.split("info_hash=")[1].split("&")[0] # "&" handles series hashes - + info_hash = torrent.get("infoHash", None) if not info_hash: continue