Skip to content

fix: parse "ТВ-N" season marker without brackets or in Latin, skip the TV-3 channel in dub credits - #79

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

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

Conversation

@a1d4r

@a1d4r a1d4r commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

"ТВ-N" numbers an anime's TV season. The handler only takes "(ТВ-N)"/"[ТВ-N]"
in Cyrillic with a hyphen. It misses "Стальной Алхимик ТВ-2 (64 из 64)",
"Gintama TV-1 [01-201]", "[TV-1]" and "(ТВ 2, часть 2)", but does read the TV-3
channel in "ДБ (ТВ-3)" (a dub credit) as season 3.

Title Before After
Fullmetal Alchemist: Brotherhood / Стальной Алхимик ТВ-2 (64 из 64) Complete [720p] — S2
Гинтама / Gintama TV-1 [01-201] (2006) BDRip-HEVC 720p | L1 — S1
Shingeki no Kyojin / Attack on Titan / … [TV-1] [2013, TV, 25 эп.] BDRip 720p — S1
… (ТВ 2, часть 2) [2023, TV, 12 из 12 эп.] BDRemux 1080p — S2
Гоблин (…) (1-16 серии из 16) / Dokkaebi (…) / 2016-2017 / ДБ (ТВ-3), ПМ, СТ / WEB-DL (1080p) S3 —
Терминатор 2: … MVO (ТВ-6), MVO (ОРТ) + Eng S6 —
Терминатор 2: … 4x MVO (Киномания, ОРТ, ТВ-6, CP Digital) — — (unchanged)
Show Name TV-14 [1080p] — — (unchanged)
Тёмное дело (ТВ-2) / Dark Case [1080p] S2 S2 (unchanged)

Fix:

  • the bracketed handler skips "(ТВ-N)" right after a dub tag (ДБ, ПМ, MVO, …)
    taken as a whole word, so "Тёмное дело (ТВ-2)" keeps its season;
  • a second bracketed form takes "ТВ N" with a space and Latin "TV-N";
  • a third takes "ТВ-N"/"TV-N" after the name and before a bracket or "/" (Latin
    only with a single digit, so "TV-14" ratings are not seasons). A channel
    inside a list of dubs is not matched. The marker sits inside the name, so
    this handler does not end the title (skipFromTitle): titles stay exactly
    as before ("Jujutsu Kaisen TV-2", "Gintama TV-1").

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

…e TV-3 channel in dub credits

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@a1d4r
a1d4r force-pushed the fix/ru-tv-season-marker branch from 9c82585 to f8a2e67 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