Skip to content

fix: parse the trailing episode group of AniLiberty names ("[WEB-DL 1080p][AVC][1-23]") - #83

Open
a1d4r wants to merge 1 commit into
AIOStreams:mainfrom
a1d4r:fix/trailing-bracket-episode
Open

a1d4r wants to merge 1 commit into
AIOStreams:mainfrom
a1d4r:fix/trailing-bracket-episode

Conversation

@a1d4r

@a1d4r a1d4r commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

AniLiberty names end with the episodes in the last bracket group, right after
the quality and codec groups: "/ 2026 / [WEB-DL 1080p][AVC][1]". A single
episode is not parsed at all, and a range is lost when the name has a season.

Title Before After
Ледяная стена / Koori no Jouheki / 2026 / [WEB-DL 1080p][AVC][1] — E1
Блич / Bleach / 2004 / [BDRip 1080p][HEVC][347] — E347
Магическая битва 2 / JUJUTSU KAISEN Season 2 / 2023 / [WEBRip 1080p][AVC][1-23] S2 S2 E1-23

Fix: a handler for "][N]" or "][A-B]" at the very end of the name. A year
("][2023]") or a non-numeric group ("][10bit]") is not taken.

Tests: src/tests/trailingBracketEpisode.test.ts, with negative cases. 7 of 3,574 labelled
releases fixed, no regressions; 28 of 37k titles change.

…080p][AVC][1-23]")

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@a1d4r
a1d4r force-pushed the fix/trailing-bracket-episode branch from f1865ab to 79bd940 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