Skip to content

Commit

Permalink
BHD - use imdb_id for dupe checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Sep 20, 2024
1 parent 6e95a24 commit 2f42eb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/trackers/BHD.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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()
Expand Down

0 comments on commit 2f42eb8

Please sign in to comment.