Skip to content

fix: parse Russian ordinal season words ("второй сезон", "первый, второй сезоны") - #82

Open
a1d4r wants to merge 1 commit into
AIOStreams:mainfrom
a1d4r:fix/ru-ordinal-season
Open

a1d4r wants to merge 1 commit into
AIOStreams:mainfrom
a1d4r:fix/ru-ordinal-season

Conversation

@a1d4r

@a1d4r a1d4r commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

The season can be written as an ordinal word: "(второй сезон)" = season 2.

Title Before After
Code Geass: Lelouch of the Rebellion R2 / Код Гиас: Восставший Лелуш (второй сезон) (25 из 25) Complete [720p] — S2
Ginga Eiyuu Densetsu: Die Neue These - Gekitotsu / Легенда о героях Галактики (третий сезон) (12 из 12) Complete [1080p] — S3
Драконий жемчуг Зет (Второй Сезон) / Dragon Ball Z [TV] [001-125 из 291] [RUS(int),JAP] [1989] — S2
… Код Гиас: Восставший Лелуш (первый, второй сезоны) [2006, TV, 50 эп.] BDRip 1080p — S1,2
… О моем перерождении в слизь [ТВ-2, первый сезон] (12 из 12) Complete [1080p] S2 S2 (unchanged)

Fix: a handler for "первый … десятый сезон(ы)", with comma or "и" lists,
mapped by word stem, placed after the "2nd Season" handler. "ТВ-N, первый
сезон" keeps the TV season. The marker sits inside the name, so it does not end
the title (skipFromTitle): titles stay exactly as before.

Tests: src/tests/russianOrdinalSeason.test.ts. 9 of 3,574 labelled
releases fixed, no regressions. 21 of 37k titles change, seasons only; no
title changes.

…рой сезоны")

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@a1d4r
a1d4r force-pushed the fix/ru-ordinal-season branch from e1a9f83 to 95f301b 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