Skip to content

IHD: update banned groups#1234

Open
ItsIXam wants to merge 1 commit intoAudionut:masterfrom
ItsIXam:master
Open

IHD: update banned groups#1234
ItsIXam wants to merge 1 commit intoAudionut:masterfrom
ItsIXam:master

Conversation

@ItsIXam
Copy link
Copy Markdown

@ItsIXam ItsIXam commented Feb 9, 2026

Updated banned groups for InfinityHD (IHD)

Summary by CodeRabbit

  • Bug Fixes
    • Updated tracker filtering to exclude specific items from operations, replacing previous unrestricted behavior.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Feb 9, 2026

📝 Walkthrough

Walkthrough

The IHD tracker initialization was modified to populate the banned_groups list with specific group identifiers, replacing the previously empty list. This enables explicit filtering based on a curated set of banned group names during tracker operations.

Changes

Cohort / File(s) Summary
IHD Tracker Configuration
src/trackers/IHD.py
Populated banned_groups list with a set of group identifiers for filtering, replacing the prior empty list. +15/-2 lines changed.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 The filtered burrow grows more secure today,
With banned groups blocked and tucked away,
From empty lists to curated care,
The tracker hops with newfound flair!

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'IHD: update banned groups' directly and clearly describes the main change: updating the banned groups list in the IHD tracker configuration.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@src/trackers/IHD.py`:
- 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.
🧹 Nitpick comments (1)
src/trackers/IHD.py (1)

33-33: Unnecessary backslash continuation inside list literal.

The list is delimited by […], which provides implicit line continuation. The trailing \ on this line is superfluous and inconsistent with all the other lines in the list.

Proposed fix
-            'FaNGDiNG0', 'Feranki1980', 'FGT', 'FMD', 'FRDS', 'FZHD', 'GalaxyRG', 'GHD',\
+            'FaNGDiNG0', 'Feranki1980', 'FGT', 'FMD', 'FRDS', 'FZHD', 'GalaxyRG', 'GHD',

Comment thread src/trackers/IHD.py
'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.

@github-actions
Copy link
Copy Markdown

🔍 Code Analysis Results

🧹 Ruff Lint

=== Python 3.9, 3.10, 3.11, 3.12, 3.13, 3.14 (identical results) — Ruff ===
W291 [*] Trailing whitespace
  --> src/trackers/IHD.py:29:94
   |
27 |         self.requests_url = f'{self.base_url}/api/requests/filter'
28 |         self.torrent_url = f'{self.base_url}/torrents/'
29 |         self.banned_groups = ['1000', '24xHD', '41RGB', '4K4U', 'AG', 'AOC', 'AROMA', 'aXXo', 
   |                                                                                              ^
30 |             'AZAZE', 'BARC0DE', 'BAUCKLEY', 'BdC', 'beAst', 'BRiNK', 'BTM', 'C1NEM4', 'C4K',
31 |             'CDDHD', 'CHAOS', 'CHD', 'CHX', 'CiNE', 'COLLECTiVE', 'CREATiVE24', 'CrEwSaDe',
   |
help: Remove trailing whitespace

W291 [*] Trailing whitespace
  --> src/trackers/IHD.py:32:86
   |
30 |             'AZAZE', 'BARC0DE', 'BAUCKLEY', 'BdC', 'beAst', 'BRiNK', 'BTM', 'C1NEM4', 'C4K',
31 |             'CDDHD', 'CHAOS', 'CHD', 'CHX', 'CiNE', 'COLLECTiVE', 'CREATiVE24', 'CrEwSaDe',
32 |             'CTFOH', 'd3g', 'DDR', 'DepraveD', 'DNL', 'DRX', 'EPiC', 'EuReKA', 'EVO', 
   |                                                                                      ^
33 |             'FaNGDiNG0', 'Feranki1980', 'FGT', 'FMD', 'FRDS', 'FZHD', 'GalaxyRG', 'GHD',\
34 |             'GHOSTS', 'GPTHD', 'HDHUB4U', 'HDS', 'HDT', 'HDTime', 'HDWinG', 'HiQVE', 'in',
   |
help: Remove trailing whitespace

W291 [*] Trailing whitespace
  --> src/trackers/IHD.py:38:89
   |
36 |             'L0SERNIGHT', 'LAMA', 'Leffe', 'Liber8', 'LiGaS', 'LT', 'LUCY', 'MarkII',
37 |             'MeGusta', 'Mesc', 'mHD', 'mSD', 'MT', 'MTeam', 'MySiLU', 'NhaNc3', 'nhanc3',
38 |             'nHD', 'nikt0', 'nSD', 'OFT', 'Paheph', 'PATOMiEL', 'PRODJi', 'PSA', 'PTNK', 
   |                                                                                         ^
39 |             'RARBG', 'RDN', 'Rifftrax', 'RU4HD', 'SANTi', 'SasukeducK', 'Scene', 'SHD', 
40 |             'ShieldBearer', 'STUTTERSHIT', 'SUNSCREEN', 'TBS', 'TEKNO3D', 'TG', 'Tigole', 
   |
help: Remove trailing whitespace

W291 [*] Trailing whitespace
  --> src/trackers/IHD.py:39:88
   |
37 |             'MeGusta', 'Mesc', 'mHD', 'mSD', 'MT', 'MTeam', 'MySiLU', 'NhaNc3', 'nhanc3',
38 |             'nHD', 'nikt0', 'nSD', 'OFT', 'Paheph', 'PATOMiEL', 'PRODJi', 'PSA', 'PTNK', 
39 |             'RARBG', 'RDN', 'Rifftrax', 'RU4HD', 'SANTi', 'SasukeducK', 'Scene', 'SHD', 
   |                                                                                        ^
40 |             'ShieldBearer', 'STUTTERSHIT', 'SUNSCREEN', 'TBS', 'TEKNO3D', 'TG', 'Tigole', 
41 |             'TIKO', 'VIDEOHOLE', 'VISIONPLUSHDR-X', 'WAF', 'WiKi', 'worldmkv', 'x0r', 
   |
help: Remove trailing whitespace

W291 [*] Trailing whitespace
  --> src/trackers/IHD.py:40:90
   |
38 |             'nHD', 'nikt0', 'nSD', 'OFT', 'Paheph', 'PATOMiEL', 'PRODJi', 'PSA', 'PTNK', 
39 |             'RARBG', 'RDN', 'Rifftrax', 'RU4HD', 'SANTi', 'SasukeducK', 'Scene', 'SHD', 
40 |             'ShieldBearer', 'STUTTERSHIT', 'SUNSCREEN', 'TBS', 'TEKNO3D', 'TG', 'Tigole', 
   |                                                                                          ^
41 |             'TIKO', 'VIDEOHOLE', 'VISIONPLUSHDR-X', 'WAF', 'WiKi', 'worldmkv', 'x0r', 
42 |             'XLF', 'YIFY', 'YTSMX', 'Zero00', 'Zeus',
   |
help: Remove trailing whitespace

W291 [*] Trailing whitespace
  --> src/trackers/IHD.py:41:86
   |
39 |             'RARBG', 'RDN', 'Rifftrax', 'RU4HD', 'SANTi', 'SasukeducK', 'Scene', 'SHD', 
40 |             'ShieldBearer', 'STUTTERSHIT', 'SUNSCREEN', 'TBS', 'TEKNO3D', 'TG', 'Tigole', 
41 |             'TIKO', 'VIDEOHOLE', 'VISIONPLUSHDR-X', 'WAF', 'WiKi', 'worldmkv', 'x0r', 
   |                                                                                      ^
42 |             'XLF', 'YIFY', 'YTSMX', 'Zero00', 'Zeus',
43 |         ]
   |
help: Remove trailing whitespace

Found 6 errors.
[*] 6 fixable with the `--fix` option.

This comment was automatically generated by the CI pipeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant