Repository navigation
Conversation
…[16/16]") as episode ranges Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
a1d4r
force-pushed
the
fix/ru-episode-count
branch
from
November 17, 2026 16:00
a688a51 to
2f6a317
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.
Russian trackers often give how many episodes a pack holds instead of a range.
The parser takes the count as an episode number, so a full season is only
matched for its last episode.
Остаться в живых (2 сезон: 24 серии из 24) / Lost / 2005-2006 / ДБ (Первый канал), СТ / BDRipКомпьютершики (1-3 сезоны: 18 серий из 18) / The IT Crowd / 2006-2008 / ПО / DVDRipРеинкарнация безработного (1 сезон. Часть 2: 12 серий + Бонус) / Mushoku Tensei … / 2021Секретные материалы (8 выпусков из 8) [2022, …, SATRip]Игра престолов / Game of Thrones (Сезон 2 полный (10)) (2012) WEB-DL 720p (LostFilm)Доктор Хаус / House M.D. / Сезон: 7 / Полный (23) [2010, …]Грэвити Фоллс / Gravity Falls / Сезон: 2 / Серии: 14 из ? (…) [2014, …]Потомки солнца / Descendants Of The Sun [16/16] [2016]Чужестранка / Outlander [08х02 из 10] (2026) WEB-DL 1080p | ColdFilmМистер Бин (Диск 3 из 6) / Mr. Bean (…) [2003, …, DVD5]Fix:
form is always a count) -> 1..K. Not after a range ("5-10 серии из 10" stays
5-10), not after "из" ("серия 5 из 16 серий" is not 1-16), not for 0 ("0
серии из 12" stays episode 0);
and "Диск 3 из 6" / "Disc 3 of 6".
The count handlers keep only the number as the match (matchGroup), so a count
does not start an episode title.
Tests: src/tests/russianEpisodeCount.test.ts. 43 of 3,574 labelled
releases fixed, no regressions. 235 of 37k titles change, all of them
Cyrillic; 6 titles change from "Мистер Бин Диск" to "Mr. Bean".