Skip to content

Fixed animetosho xyz matching the season of releases named for another season - #3689

Merged
morpheus65535 merged 1 commit into
morpheus65535:developmentfrom
iEdgir01:fix/animetosho-xyz-wrong-season
Oct 28, 2026
Merged

morpheus65535 merged 1 commit into
morpheus65535:developmentfrom
iEdgir01:fix/animetosho-xyz-wrong-season

Conversation

@iEdgir01

Copy link
Copy Markdown

Fixes #3688

Note: Claude (Anthropic's AI assistant, via Claude Code) carried out the investigation and wrote this fix under my supervision. I directed the work, checked the findings against my own Bazarr instance, and reviewed the change before submitting.

Bugs found

Found while debugging missing anime subtitles on v1.6.2:

  1. AnimeTosho.xyz: wrong-season releases get the season match (fixed here). AnimeTosho files some later-season releases under an earlier season's AniDB episode id. For example, Mashle S01E11 (eid=267727) returns mostly S02E11 releases. get_matches always adds season, so these score like correct releases (62) and can be downloaded automatically.
  2. Legacy animetosho: feed.animetosho.org is NXDOMAIN, so every request fails. Not fixed here: the provider is deprecated ([Provider] AnimeTosho feed returns HTTP 429 and service shutdown notice #3568).
  3. Legacy animetosho: the attachment host moved (storage.animetosho.org is NXDOMAIN). AnimeTosho.xyz already uses the per-attachment url.
  4. Legacy animetosho: attachment language moved from lang to language_code. AnimeTosho.xyz already reads language_code.
  5. Legacy animetosho: the anidb refiner provides (anidb_series_id, anidb_episode_id), and the provider sent both as eid, so the feed returned []. AnimeTosho.xyz already unpacks the tuple.

Change

AnimeToshoXYZSubtitle.get_matches still always adds series and episode. It now adds season only when no parsed release name (torrent name or file names) explicitly names a different season than the video.

  • Mashle S02E11 for S01E11: no season match, so it scores lower and drops below a typical minimum score.
  • Mashle Magic And Muscles - 11 (no season in the name): unchanged, season assumed from the AniDB episode id.

This demotes candidates instead of filtering them out. Shows whose TVDB season numbering differs from the release numbering stay listed and can still be picked manually.

Tests

Added parametrized cases to tests/subliminal_patch/test_animetosho_xyz.py covering two S02 names, one S01 name and one name without a season.

  • With the fix: 22 passed (Python 3.13).
  • Without the fix: the two wrong-season cases fail.

…r season

AnimeTosho files some later season releases under an earlier season's
AniDB episode id (e.g. Mashle S02E11 listed for S01E11). Only assume the
season matches when no parsed release name explicitly names a different one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@morpheus65535

Copy link
Copy Markdown
Owner

@anderson-oki you want to take a look at this one please?

@morpheus65535
morpheus65535 merged commit 9efbbb8 into morpheus65535:development Oct 28, 2026
7 checks passed
@iEdgir01

Copy link
Copy Markdown
Author

yipeeeee

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.

3 participants