[PR #8004] Episode multiple versions #11421

Open
opened 2025-12-22 08:44:31 +01:00 by backuprepo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/8004
Author: @SenorSmartyPants
Created: 6/24/2022
Status: 🔄 Open

Base: masterHead: EpisodeMultipleVersions


📝 Commits (6)

  • 8eb96e0 Non greedy regex, parse the first year, not the last
  • 89c067c Make sure episodes in series folder don't group as multiversion
  • d872225 Code review: Count() -> Count and comments capitalization
  • ee8701e version[ABCD] test
  • b1292a3 Convert Equals 1 to Single tests
  • c91faf9 Update tests

📊 Changes

5 files changed (+475 additions, -66 deletions)

View changed files

📝 Emby.Naming/Common/NamingOptions.cs (+19 -2)
📝 Emby.Naming/Video/VideoListResolver.cs (+113 -22)
📝 Emby.Server.Implementations/Library/Resolvers/Movies/MovieResolver.cs (+2 -2)
📝 tests/Jellyfin.Naming.Tests/Video/MultiVersionTests.cs (+219 -20)
📝 tests/Jellyfin.Naming.Tests/Video/VideoListResolverTests.cs (+122 -20)

📄 Description

Changes
Enable multiple versions for episodes. Episode suffixes work or episode may be placed in it's own directory. Will not collapse episodes in series directory. Unit tests included.

/TV/Dexter/Dexter - S01E01/Dexter - S01E01 - One.mkv
/TV/Dexter/Dexter - S01E01/Dexter - S01E01 - Two.mkv
/TV/Dexter/Dexter - S01E02 - Another.mkv
/TV/Dexter/Dexter - S01E03 - Again.mkv
/TV/Dexter/Season 2/Dexter - S02E01/Dexter - S02E01 - First.mkv
/TV/Dexter/Season 2/Dexter - S02E01/Dexter - S02E01 - Second.mkv
/TV/Dexter/Season 2/Dexter - S02E02 - More.mkv

JF will show 3 episodes in season 1. 2 episodes in season 2.


🔄 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/8004 **Author:** [@SenorSmartyPants](https://github.com/SenorSmartyPants) **Created:** 6/24/2022 **Status:** 🔄 Open **Base:** `master` ← **Head:** `EpisodeMultipleVersions` --- ### 📝 Commits (6) - [`8eb96e0`](https://github.com/jellyfin/jellyfin/commit/8eb96e0a8a668397af6d7c074b2ce48e71859a21) Non greedy regex, parse the first year, not the last - [`89c067c`](https://github.com/jellyfin/jellyfin/commit/89c067c64da80dc2b0f6feab86b9267ecce9c7a1) Make sure episodes in series folder don't group as multiversion - [`d872225`](https://github.com/jellyfin/jellyfin/commit/d8722256891ec5890496234d76d19e17d1a1bbf8) Code review: Count() -> Count and comments capitalization - [`ee8701e`](https://github.com/jellyfin/jellyfin/commit/ee8701e8093d565c31708b04ab1d53b74d707e44) version[ABCD] test - [`b1292a3`](https://github.com/jellyfin/jellyfin/commit/b1292a3af8c77c6605fc28f9d3e1fc3c0ecf5be2) Convert Equals 1 to Single tests - [`c91faf9`](https://github.com/jellyfin/jellyfin/commit/c91faf9ff5124eddb6d44cc9aaf2da612465f6ca) Update tests ### 📊 Changes **5 files changed** (+475 additions, -66 deletions) <details> <summary>View changed files</summary> 📝 `Emby.Naming/Common/NamingOptions.cs` (+19 -2) 📝 `Emby.Naming/Video/VideoListResolver.cs` (+113 -22) 📝 `Emby.Server.Implementations/Library/Resolvers/Movies/MovieResolver.cs` (+2 -2) 📝 `tests/Jellyfin.Naming.Tests/Video/MultiVersionTests.cs` (+219 -20) 📝 `tests/Jellyfin.Naming.Tests/Video/VideoListResolverTests.cs` (+122 -20) </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** Enable multiple versions for episodes. Episode suffixes work or episode may be placed in it's own directory. Will not collapse episodes in series directory. Unit tests included. ``` /TV/Dexter/Dexter - S01E01/Dexter - S01E01 - One.mkv /TV/Dexter/Dexter - S01E01/Dexter - S01E01 - Two.mkv /TV/Dexter/Dexter - S01E02 - Another.mkv /TV/Dexter/Dexter - S01E03 - Again.mkv /TV/Dexter/Season 2/Dexter - S02E01/Dexter - S02E01 - First.mkv /TV/Dexter/Season 2/Dexter - S02E01/Dexter - S02E01 - Second.mkv /TV/Dexter/Season 2/Dexter - S02E02 - More.mkv ``` JF will show 3 episodes in season 1. 2 episodes in season 2. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
backuprepo added the
pull-request
label 2025-12-22 08:44:31 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#11421
No description provided.