mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #15404] [MERGED] Improve season folder parsing #14300
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/15404
Author: @theguymadmax
Created: 11/5/2025
Status: ✅ Merged
Merged: 11/13/2025
Merged by: @crobibero
Base:
release-10.11.z← Head:fix-season-folder-parser📝 Commits (1)
8f82b10Improve season folder parsing📊 Changes
2 files changed (+29 additions, -28 deletions)
View changed files
📝
Emby.Naming/TV/SeasonPathParser.cs(+23 -28)📝
tests/Jellyfin.Naming.Tests/TV/SeasonPathParserTests.cs(+6 -0)📄 Description
Changes
Fixed
SeasonPathParserto extract season numbers from filenames and folder names with bracketed season tags and numeric prefixes, while preventing false matches from resolution numbers like 1080p or 2160p. Added aSeasonPrefixregex and aCleanNameRegexto handle various filename formats that previously failed. Included new test patterns from user examples, covering cases that failed in the previousSeasonPathParser.Issues
Fixes #15253
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.