Repository navigation
Conversation
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
a1d4r
force-pushed
the
fix/ru-special-sum
branch
from
November 17, 2026 16:00
9c0564e to
92204e3
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Anime releases on Russian trackers count TV episodes and specials separately:
"[TV+Special] [25+9 из 25+9]" is 25 TV episodes plus 9 specials. The parser
reads parts of the sum ("9 из 25" -> 1-9, "12+13" -> 12,13, "4 из 64" -> 1-4).
Атака Титанов (ТВ-1) / Shingeki no Kyojin / Attack on Titan [TV+Special] [25+9 из 25+9] [JAP+Sub] & [25+0 из 25+9] [RUS(ext)] [2013, …]Военная хроника маленькой девочки / Youjo Senki / … [TV+Special] [12+13 из 12+14] [JAP+Sub] [2017]Стальной алхимик: Братство (ТВ-2) / … / Fullmetal Alchemist: Brotherhood [TV+Special] [64+4 из 64+4] [RUS(int)] [2009]… (ТВ 2, часть 1) [2023, TV+Special, 12+1 из 12+1 эп.] BDRemux 1080pХеллсинг (ОВА) / Hellsing Ultimate [OVA+Special] [01-10+3 из 10+3] (2006-2012) BDRip 720pКомпьютершики / The IT Crowd (1-й сезон. 6+1 доп) (…) [2006, …]Fix: one handler for "A+B из C+D" (and "A+B доп"), before the comma/plus list
handler. The first term numbers the episodes ("25" -> 1-25, "01-10" -> 1-10).
An airing season gives a lower bound for the total ("[1-90+0 из >115+1]"), so
an optional ">" is allowed there.
The second bracket "& [25+0 из 25+9] [RUS(ext)]" is about the dub coverage and
is never reached. Titles lose the "TV+Special 24+" tail as a side effect.
Tests: src/tests/russianSpecialsSum.test.ts. 19 of 3,574 labelled
releases fixed, no regressions; 96 of 37k titles change.