Skip to content

fix: ignore Russian arc counts of filler-free cuts ("2 главы из 11") - #84

Open
a1d4r wants to merge 1 commit into
AIOStreams:mainfrom
a1d4r:fix/ru-arc-chapters
Open

a1d4r wants to merge 1 commit into
AIOStreams:mainfrom
a1d4r:fix/ru-arc-chapters

Conversation

@a1d4r

@a1d4r a1d4r commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Filler-free cuts of long anime on Kinozal count story arcs ("главы"), not
episodes or seasons: "Наруто: Ураганные хроники (2 главы из 11) (Без
филлеров)" holds arc 1 "Миссия по спасению Казекаге" (episodes 001-032) and
arc 2 "Долгожданная встреча" (033-053), 51 files with absolute numbering
(verified on the tracker page). The parser reads the arc count as episodes
("25 глав из 25" -> E25, "1-18 глав из 45" -> E1-18), and the name is cut
there, so the title becomes the Russian half.

Title Before After
Наруто (Без филлеров) (25 глав из 25) / Naruto / 2002-2007 / ЛО (TimaMan) / DVDRip (AVC) E25, title "Наруто" no episodes, title "Naruto"
Наруто: Ураганные хроники (Без филлеров) (1-18 глав из 45) / Naruto Shippuuden / 2007-2017 / ЛМ (AkariGroup) / WEBRip (720p) E1-18, title "Наруто: Ураганные хроники" no episodes, title "Naruto Shippuuden"
Наруто: Ураганные хроники (2 главы из 11) (Без филлеров) / Naruto: Shippuuden / 2007-2008 / HEVC / BDRip (1080p) E2 no episodes, title "Naruto: Shippuuden"
Пламенная бригада пожарных: Вторая глава (ТВ-2) / … S2 S2 (unchanged)

Arcs do not map to seasons either: 25 arcs for 220 Naruto episodes; 11 or 45
arcs in different Shippuuden cuts. A pack without season or episodes matches
any episode, which is right for such a cut.

Fix: parse() drops "(N глав из M)" / "(A-B глав из M)" in brackets before the
handlers run, like the whitespace clean-up. Manga lists ("[34 тома, 139
глав]", "[Глава 1-662]") have no "из" and are left as they are.

Tests: src/tests/russianArcChapters.test.ts. 2 of 3,574 labelled releases
fixed, no regressions; 2 of 37k titles change. Nothing changes in the
existing test suite's titles.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@a1d4r
a1d4r force-pushed the fix/ru-arc-chapters branch from 0c831c4 to a7e593d 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