Skip to content
This repository was archived by the owner on Jun 14, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions src/trackers/IHD.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,22 @@ def __init__(self, config: Config) -> None:
self.search_url = f'{self.base_url}/api/torrents/filter'
self.requests_url = f'{self.base_url}/api/requests/filter'
self.torrent_url = f'{self.base_url}/torrents/'
self.banned_groups = []
self.banned_groups = ['1000', '24xHD', '41RGB', '4K4U', 'AG', 'AOC', 'AROMA', 'aXXo',
'AZAZE', 'BARC0DE', 'BAUCKLEY', 'BdC', 'beAst', 'BRiNK', 'BTM', 'C1NEM4', 'C4K',
'CDDHD', 'CHAOS', 'CHD', 'CHX', 'CiNE', 'COLLECTiVE', 'CREATiVE24', 'CrEwSaDe',
'CTFOH', 'd3g', 'DDR', 'DepraveD', 'DNL', 'DRX', 'EPiC', 'EuReKA', 'EVO',
'FaNGDiNG0', 'Feranki1980', 'FGT', 'FMD', 'FRDS', 'FZHD', 'GalaxyRG', 'GHD',\
'GHOSTS', 'GPTHD', 'HDHUB4U', 'HDS', 'HDT', 'HDTime', 'HDWinG', 'HiQVE', 'in',
'iNTENSO', 'iPlanet', 'iVy', 'jennaortegaUHD', 'JFF', 'KC', 'KiNGDOM', 'KIRA',
'L0SERNIGHT', 'LAMA', 'Leffe', 'Liber8', 'LiGaS', 'LT', 'LUCY', 'MarkII',
'MeGusta', 'Mesc', 'mHD', 'mSD', 'MT', 'MTeam', 'MySiLU', 'NhaNc3', 'nhanc3',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

# First, let's see the context around lines 29-43 in IHD.py
cat -n src/trackers/IHD.py | sed -n '25,45p'

Repository: Audionut/Upload-Assistant

Length of output: 1748


🏁 Script executed:

# Find the UNIT3D parent class to understand how banned_groups is used
fd -t f UNIT3D.py

Repository: Audionut/Upload-Assistant

Length of output: 91


🏁 Script executed:

# Search for banned_groups usage throughout the codebase
rg -n 'banned_groups' --type=py -A 3 -B 3

Repository: Audionut/Upload-Assistant

Length of output: 41859


🏁 Script executed:

# Search for check_banned_group implementation
rg -n 'def check_banned_group' --type=py -A 10

Repository: Audionut/Upload-Assistant

Length of output: 756


🏁 Script executed:

# Get more context around check_banned_group function
rg -n 'def check_banned_group' --type=py -A 30

Repository: Audionut/Upload-Assistant

Length of output: 2180


🏁 Script executed:

# Also search for how banned_groups is actually checked in the base class
rg -n 'banned_groups' --type=py -B 2 -A 2 | grep -A 5 -B 5 'in.*banned'

Repository: Audionut/Upload-Assistant

Length of output: 2644


🏁 Script executed:

# Search for the rest of check_banned_group to see the actual matching logic
rg -n 'def check_banned_group' --type=py -A 50 | head -60

Repository: Audionut/Upload-Assistant

Length of output: 3646


🏁 Script executed:

# Let's see the full context around line 33 to confirm the backslash
sed -n '33p' src/trackers/IHD.py | cat -A

Repository: Audionut/Upload-Assistant

Length of output: 159


🏁 Script executed:

# Confirm the backslash presence at the end of line 33
cat -n src/trackers/IHD.py | sed -n '33p' && echo "---" && cat -n src/trackers/IHD.py | sed -n '34p'

Repository: Audionut/Upload-Assistant

Length of output: 267


Remove the duplicate 'nhanc3' entry on line 37.

Since banned-group matching is case-insensitive (the code converts both tags to lowercase for comparison), having both 'NhaNc3' and 'nhanc3' is redundant. Remove one of them.

Proposed fix
-            'MeGusta', 'Mesc', 'mHD', 'mSD', 'MT', 'MTeam', 'MySiLU', 'NhaNc3', 'nhanc3',
+            'MeGusta', 'Mesc', 'mHD', 'mSD', 'MT', 'MTeam', 'MySiLU', 'NhaNc3',
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
'MeGusta', 'Mesc', 'mHD', 'mSD', 'MT', 'MTeam', 'MySiLU', 'NhaNc3', 'nhanc3',
'MeGusta', 'Mesc', 'mHD', 'mSD', 'MT', 'MTeam', 'MySiLU', 'NhaNc3',
🤖 Prompt for AI Agents
In `@src/trackers/IHD.py` at line 37, Remove the duplicate 'nhanc3' entry from the
list of banned group tags (the string list that includes 'MeGusta', 'Mesc',
'mHD', 'mSD', 'MT', 'MTeam', 'MySiLU', 'NhaNc3', 'nhanc3'); since matching is
case-insensitive and 'NhaNc3' already exists, delete the redundant 'nhanc3'
literal so only one of those variants remains in the banned-group list.

'nHD', 'nikt0', 'nSD', 'OFT', 'Paheph', 'PATOMiEL', 'PRODJi', 'PSA', 'PTNK',
'RARBG', 'RDN', 'Rifftrax', 'RU4HD', 'SANTi', 'SasukeducK', 'Scene', 'SHD',
'ShieldBearer', 'STUTTERSHIT', 'SUNSCREEN', 'TBS', 'TEKNO3D', 'TG', 'Tigole',
'TIKO', 'VIDEOHOLE', 'VISIONPLUSHDR-X', 'WAF', 'WiKi', 'worldmkv', 'x0r',
'XLF', 'YIFY', 'YTSMX', 'Zero00', 'Zeus',
]
pass

async def get_category_id(
self,
meta: Meta,
Expand Down