Skip to content

fix: parse Russian "A-B серии" as an episode range after "сезоны:" or a number range in the name - #77

Open
a1d4r wants to merge 1 commit into
AIOStreams:mainfrom
a1d4r:fix/ru-episode-range-before-word
Open

a1d4r wants to merge 1 commit into
AIOStreams:mainfrom
a1d4r:fix/ru-episode-range-before-word

Conversation

@a1d4r

@a1d4r a1d4r commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

A range followed by "серии" (episodes) is lost in two cases, and only the
episode count survives:

Title 0.9.1 main After
Discovery. Разрушители легенд (Все сезоны: 1-250 серии из 250 + 19 спецвыпусков) / Mythbusters / 2003-2016 / ПМ, ПО / TVRip, SATRip E1-250 E250 E1-250
Бруклин 9-9 (7 сезон: 1-13 серии из 13) / Brooklyn Nine-Nine / 2020 / ЛД (KerobTV) / WEBRip S1-13 E7 S7 E13 S7 E1-13
Бруклин 9-9 (1-7 сезоны: 1-143 серии из 143) / Brooklyn Nine-Nine / 2013-2020 / … S7 E143 S1-7 E143 S1-7 E1-143

Fix: an "A-B серии/эпизоды" handler placed right after the generic range
handler, so it only applies when that one found nothing. It is not used after
a comma or "и" (lists) or a digit.

Tests: src/tests/russianRangeBeforeWord.test.ts, including lists that
must not be taken by their last range. 8 of 3,574 labelled releases fixed, no
regressions; 48 of 37k titles change (all "Бруклин 9-9" plus the Mythbusters
pack).

… a number range in the name

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@a1d4r
a1d4r force-pushed the fix/ru-episode-range-before-word branch from 6783cee to a3114f5 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