From 2f42eb81ff9e98e275b0a1ed9954408c128a3cf0 Mon Sep 17 00:00:00 2001 From: Audionut Date: Fri, 20 Sep 2024 11:53:52 +1000 Subject: [PATCH] BHD - use imdb_id for dupe checking --- src/trackers/BHD.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/trackers/BHD.py b/src/trackers/BHD.py index 9fc62d311..cff21b2eb 100644 --- a/src/trackers/BHD.py +++ b/src/trackers/BHD.py @@ -220,9 +220,9 @@ async def search_existing(self, meta): if category == 'MOVIE': category = "Movies" data = { - 'tmdb_id': meta['tmdb'], + 'action': 'search', + 'imdb_id': meta['imdb_id'], 'categories': category, - 'types': await self.get_type(meta), } # Search all releases if SD if meta['sd'] == 1: @@ -232,7 +232,7 @@ async def search_existing(self, meta): if meta.get('tv_pack', 0) == 1: data['pack'] = 1 data['search'] = f"{meta.get('season', '')}{meta.get('episode', '')}" - url = f"https://beyond-hd.me/api/torrents/{self.config['TRACKERS']['BHD']['api_key'].strip()}?action=search" + url = f"https://beyond-hd.me/api/torrents/{self.config['TRACKERS']['BHD']['api_key'].strip()}" try: response = requests.post(url=url, data=data) response = response.json()