fix(mods): keep mature GameBanana mods out of the Add mods list (search still finds them) #430

Merged
HumanBean merged 2 commits from HumanBean/LongshotLauncher:fix/gamebanana-hide-mature into main 2026-12-06 05:11:08 +00:00
Owner

GameBanana flags mature mods, and the launcher never looked at those flags, so it relied on GameBanana's own listing. This makes the browse list drop them itself, while searching by name still finds them.

  • The browse list (no search text) drops any mod with _bHasContentRatings or a visibility other than show.
  • Search still returns them: GameBanana's anonymous search does (checked live: "Fish Lips", mod 744847, rated "Full Nudity", hide). Opening and installing such a mod works as before.
  • A unit test covers the rating and visibility combinations.

Tests: tests/test_launcher_core.py passed on the first commit (447); this change was checked with Clippy and the new unit test only. The Tooling release test was not run.

🤖 Generated with Claude Code

GameBanana flags mature mods, and the launcher never looked at those flags, so it relied on GameBanana's own listing. This makes the browse list drop them itself, while searching by name still finds them. - The browse list (no search text) drops any mod with `_bHasContentRatings` or a visibility other than `show`. - Search still returns them: GameBanana's anonymous search does (checked live: "Fish Lips", mod 744847, rated "Full Nudity", `hide`). Opening and installing such a mod works as before. - A unit test covers the rating and visibility combinations. Tests: `tests/test_launcher_core.py` passed on the first commit (447); this change was checked with Clippy and the new unit test only. The Tooling release test was not run. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Add GameBanana as an optional launcher repository with native previews and file selection. Review ZIP, RAR, 7z, and Longshot packages through the existing import flow.

Assisted-by: OpenAI Codex
Co-authored-by: OpenAI Codex <[email protected]>
- GameBanana: instant selection with a background profile fetch, infinite scroll, download progress,
  installs linked back to their GameBanana mod (thumbnail, info, Installed and Update), and its own
  tag and open-in-browser link on each row
- One modal per install: the review shows the game's warning and its confirm accepts exactly what it
  showed (same id and content, no extra permission); a Replace still asks
- Add mods and the catalog load in the background; the header's buttons stay usable during a switch
- Installed side card rebuilt (description, status only when it needs action, permissions as chips);
  Details page removed; shorter notes under the list; the builder's log no longer shown
- "Longshot Mods" as the repository's name; repository, author, version on every row
- One shared side-card footer across Versions, Saves, Profiles and Mods; version count in the title

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- File downloads: connect and per-read timeouts, no total limit; redirects checked by a pure next_hop
- A failed GameBanana profile fetch is retried only when the player chooses the mod again
- Add mods queued during a job runs only if the job succeeded and the page did not change
- An import over an existing mod (a GameBanana update included) asks for its code again
- Deleting a profile forgets its GameBanana origins and their unused pictures
- Tests: redirects, RAR/7z traversal, links, duplicates and limits, grant matching, stale pages
- RAR: an oversized entry is refused before its file is created; licences label restored

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(mods): a category chosen on Add mods hides GameBanana's uncategorised results
Some checks are pending
CI / What the change needs (pull_request) Waiting to run
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Waiting to run
CI / Rust formatting, lint and tests (pull_request) Blocked by required conditions
CI / Release packages and stable upgrades (pull_request) Blocked by required conditions
PR title / Conventional Commit title (pull_request) Waiting to run
5a12aa10dc
Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix(mods): keep mature GameBanana mods out of Add mods
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
43340ae26a
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Member

Possibly related, for context:

  • PR #428 feat(mods): browse and install GameBanana mods — Introduced GameBanana discovery and install flow; this adds safety filtering
Possibly related, for context: - PR #428 feat(mods): browse and install GameBanana mods — Introduced GameBanana discovery and install flow; this adds safety filtering
fix(mods): searching still finds mature GameBanana mods; only the browse list hides them
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
fb3a9790cf
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
HumanBean changed title from fix(mods): keep mature GameBanana mods out of Add mods to fix(mods): keep mature GameBanana mods out of the Add mods list (search still finds them) 2026-12-06 04:57:32 +00:00
HumanBean force-pushed fix/gamebanana-hide-mature from fb3a9790cf
Some checks failed
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Has been cancelled
CI / Rust formatting, lint and tests (pull_request) Has been cancelled
CI / Release packages and stable upgrades (pull_request) Has been cancelled
PR title / Conventional Commit title (pull_request) Has been cancelled
to 4606683363
Some checks are pending
CI / What the change needs (pull_request) Waiting to run
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Waiting to run
CI / Rust formatting, lint and tests (pull_request) Blocked by required conditions
CI / Release packages and stable upgrades (pull_request) Blocked by required conditions
PR title / Conventional Commit title (pull_request) Waiting to run
2026-12-06 05:03:55 +00:00
Compare
HumanBean deleted branch fix/gamebanana-hide-mature 2026-12-06 05:11:08 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/LongshotLauncher!430
No description provided.