Skip to content

fix: parse "[01-04x01-75 из 87]" and "[S01-02x01-78]" as a season range - #81

Open
a1d4r wants to merge 1 commit into
AIOStreams:mainfrom
a1d4r:fix/multi-season-x-range
Open

a1d4r wants to merge 1 commit into
AIOStreams:mainfrom
a1d4r:fix/multi-season-x-range

Conversation

@a1d4r

@a1d4r a1d4r commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Rutor writes multi-season packs as "[01-04x01-75 из 87]": seasons 1-4, episodes
1-75 counted through the seasons. Only the last season (or the first, with
"S") is parsed, so the pack is hidden for the other seasons.

Title Before After
Атака титанов / Вторжение титанов / Shingeki no Kyojin [01-04x01-75 из 87] (2013-2021) WEBRip 720p | StudioBand S4 S1-4
Друзья ангелов / Angel's Friends [S01-02x01-78 из 104] (2009-2010) DVDRip от New-Team | D, P S1 S1-2
Универ [03-05x101-225] (2009-2010) SATRip … S5 S3-5
Пацаны / The Boys [01-04x01-26 из 32] (2019-2024) WEB-DLRip | Кубик в кубе S4, title "The Boys 01" S1-4, title "The Boys"
Игра престолов [01x01-10 из 10] (2011) BDRip 1080p S1 S1 (unchanged)

Fix: a season-range handler for "[A-BxC" / "[SA-BxC" at the start of the
seasons handlers. The two keepMatching "S01" handlers do not use an "S01" that
starts such a range. Episodes still come from the existing "NxA-B" handler.

Tests: src/tests/multiSeasonXRange.test.ts. 4 of 3,574 labelled releases
fixed, no regressions; 60 of 37k titles change (titles also lose the stray
"01").

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@a1d4r
a1d4r force-pushed the fix/multi-season-x-range branch from fa8839e to fcfda74 Compare November 17, 2026 16:01

This branch has not been deployed

No deployments
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