Skip to content

fix: parse Russian episode and season lists with gaps ("серии 1-4, 6-10", "1-2, 4-7 сезоны", "Сезоны 1 и 2") - #76

Open
a1d4r wants to merge 3 commits into
AIOStreams:mainfrom
a1d4r:fix/ru-episode-lists
Open

a1d4r wants to merge 3 commits into
AIOStreams:mainfrom
a1d4r:fix/ru-episode-lists

Conversation

@a1d4r

@a1d4r a1d4r commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Russian trackers list what a release holds, with gaps. The parser keeps only
the first range (episodes) or the last one (seasons), and a season list
swallows the episode count after it ("Сезон 3, 10 серий" -> seasons 3-10).

Title Before After
Игра престолов / Game of Thrones (2016) HDTV [H.264/1080p] (сезон 6, серии 1-4, 6-10 из 10) BaibaKo (обновляемая) S6 E1-4 S6 E1-4,6-10
Новые пацаны / … / Сезон: 3 / Серии: 1-3,5,8-10,12-13,16,18 из 19 (…) S3 E1-3 S3 E1-3,5,8-10,12,13,16,18
Гриффины / Family Guy [15x01-13, 15-17, 19, 20 из 20] (2016-2017) HDTVRip-AVC | Filiza S15 E1-13 S15 E1-13,15-17,19,20
Игра престолов (1-2, 4-7 сезоны: 1-57 серии из 57) / Game of Thrones / 2011-2017 / ПМ (FOX) / HDTVRip S4-7 S1,2,4-7
Южный парк / South Park / 9,10,11,12 сезоны / WEB-DLRip/BDRip / Озвучка MTV S12 S9-12
Компьютершики (Сезоны 1 и 2) / The IT Crowd (…) [2006-2007, …] — S1,2
Компьютершики / The IT Crowd Series 1 & 2 & 3 Complete (…) [2006, …] S1 S1-3
Клан Сопрано (Семья Сопрано) / The Sopranos (Все 6 Сезонов, Озвучка) (1999-2007) DVDRip S6 S1-6
Игра Престолов / Game of Thrones (2013) BDRemux [1080p] [Сезон 3, 10 серий из 10] S3-10 S3
Приключения Шерлока Холмса / … (Сезон 1, 6 серия) (…) [1984, …] S1-6 E6 S1 E6

Fix:

  • new transform toIntList: comma lists of numbers and ranges, each part after
    the previous one;
  • an episode list handler after "серии"/"Серии:"/"эпизоды"/"NNx"; a list never
    runs into "1080p";
  • a season list handler before "сезоны", and "Все N сезонов" -> 1..N;
  • "Сезоны 1 и 2" in its own handler that does not end the title there;
  • the existing "Seasons 1, 2, 3" handler also takes "Series", and stops before
    a number followed by "серии/серия/эпизод".

Tests: src/tests/russianLists.test.ts. 10 of 3,574 labelled releases
fixed, no regressions. 40 of 37k titles change, all of them Cyrillic; titles
only lose stray list fragments ("Игра престолов 1-2," -> "Игра престолов").
Three commits.

a1d4r and others added 3 commits November 17, 2026 18:58
…10", "1-2, 4-7 сезоны", "Сезоны 1 и 2")

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…0 серий", "Сезон 1, 6 серия")

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@a1d4r
a1d4r force-pushed the fix/ru-episode-lists branch from 9ae3dd7 to 8199bbc Compare November 17, 2026 16:00

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