[PR #15404] [MERGED] Improve season folder parsing #14300

Closed
opened 2026-02-07 07:27:37 +03:00 by OVERLORD · 0 comments
Owner

📋 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.zHead: fix-season-folder-parser


📝 Commits (1)

  • 8f82b10 Improve 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 SeasonPathParser to 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 a SeasonPrefix regex and a CleanNameRegex to handle various filename formats that previously failed. Included new test patterns from user examples, covering cases that failed in the previous SeasonPathParser.

Issues
Fixes #15253


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/15404 **Author:** [@theguymadmax](https://github.com/theguymadmax) **Created:** 11/5/2025 **Status:** ✅ Merged **Merged:** 11/13/2025 **Merged by:** [@crobibero](https://github.com/crobibero) **Base:** `release-10.11.z` ← **Head:** `fix-season-folder-parser` --- ### 📝 Commits (1) - [`8f82b10`](https://github.com/jellyfin/jellyfin/commit/8f82b104c3a1294f42b7cdd4da8abd5458634d35) Improve season folder parsing ### 📊 Changes **2 files changed** (+29 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `Emby.Naming/TV/SeasonPathParser.cs` (+23 -28) 📝 `tests/Jellyfin.Naming.Tests/TV/SeasonPathParserTests.cs` (+6 -0) </details> ### 📄 Description <!-- Ensure your title is short, descriptive, and in the imperative mood (Fix X, Change Y, instead of Fixed X, Changed Y). For a good inspiration of what to write in commit messages and PRs please review https://chris.beams.io/posts/git-commit/ and our documentation. --> **Changes** Fixed `SeasonPathParser` to 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 a `SeasonPrefix` regex and a `CleanNameRegex` to handle various filename formats that previously failed. Included new test patterns from user examples, covering cases that failed in the previous `SeasonPathParser`. **Issues** Fixes #15253 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 07:27:37 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#14300