Skip to content

fix: read Latin "C" in "Сезон" and Cyrillic "р" in "720р" as their look-alikes - #80

Open
a1d4r wants to merge 1 commit into
AIOStreams:mainfrom
a1d4r:fix/cyrillic-latin-lookalikes
Open

a1d4r wants to merge 1 commit into
AIOStreams:mainfrom
a1d4r:fix/cyrillic-latin-lookalikes

Conversation

@a1d4r

@a1d4r a1d4r commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Uploaders mix look-alike letters: "Cезон" with a Latin C, "720р" with a
Cyrillic р. No handler sees the season, and "720р" becomes episode 720.

Title Before After
Королевство / Kingdeom [1 cезон] (2019) WEBRip 1080p | IdeaFilm E1 S1
Как я встретил вашу маму / How I Met Your Mother [Cезон 1-7, Серия 1-160 из 160] (2005-2011) DVDRip E1-160 S1-7 E1-160
Ходячие мертвецы / The Walking Dead [7 сезон] (2016) HDTVRip 720р | Sunshine Studio S7 E720 S7, 720p
Бруклин 9-9 / Brooklyn Nine-Nine [4 сезон] (2016-2017) WEB-DL 1080р | NewStudio S4 E1080 S4, 1080p

Fix: parse() normalises only these two cases before the handlers run: "C"/"c"
directly before "езон", and "р" right after 480/576/720/1080/2160 when no
Cyrillic letter follows ("500р", a price, is left alone). The check is a single
regex test on the title.

Tests: src/tests/cyrillicLatinLookalikes.test.ts. 3 of 3,574 labelled
releases fixed, no regressions. 82 of 37k titles change, all Cyrillic:

  • 68 gain a resolution from "720р";
  • 19 get their season or episodes fixed;
  • 7 get a correct release group;
  • 10 lose junk in the title ("How I Met Your Mother C" -> "How I Met Your
    Mother").

…ok-alikes

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@a1d4r
a1d4r force-pushed the fix/cyrillic-latin-lookalikes branch from e7a730d to eef6305 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