[PR #6316] [CLOSED] Support scanning multi-version episodes #10903

Closed
opened 2026-02-07 06:28:52 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/6316
Author: @AllSeeingEyeTolledEweSew
Created: 7/19/2021
Status: Closed

Base: masterHead: asetes-episodes


📝 Commits (1)

  • 3cacb4f Support scanning multi-version episodes

📊 Changes

2 files changed (+88 additions, -1 deletions)

View changed files

📝 Emby.Server.Implementations/Library/Resolvers/TV/EpisodeResolver.cs (+44 -1)
📝 tests/Jellyfin.Server.Implementations.Tests/Library/EpisodeResolverTest.cs (+44 -0)

📄 Description

Changes
This is an attempt to implement https://features.jellyfin.org/posts/251/multiple-versions-drop-down-on-tv-series

I added support for a directory structure like Game of Thrones (2011)/Season 1/Episode S01E01/Episode S01E01 - v1.mkv. The "episode directory" can hold multiple versions of the same episode, which get automatically picked up by the scanner.

I attempted to not change any other case.

I tested with the following directory structure:

./game of thrones (2011)/extras/top-level-foo-in-extras.strm
./game of thrones (2011)/otherrrr/top-extra-foo.strm
./game of thrones (2011)/Season 1/Episode s01e01.strm
./game of thrones (2011)/Season 1/Episode s01e01 - version2.strm
./game of thrones (2011)/Season 1/Episode s01e02.strm
./game of thrones (2011)/Season 1/Episode s01e02 - version2.strm
./game of thrones (2011)/Season 1/Episode s01e03/Episode s01e03.strm
./game of thrones (2011)/Season 1/Episode s01e03/Episode s01e03 - version2.strm
./game of thrones (2011)/Season 1/extras/extra-level-two/s1-extra-level-two.strm
./game of thrones (2011)/Season 1/extras/s1-in-extras.strm
./game of thrones (2011)/Season 1/extras/s1-in-extras - version2.strm
./game of thrones (2011)/Season 1/otherr/s1-extra-bar.strm
./game of thrones (2011)/Season 1/otherr/s1-extra-foo.strm
./game of thrones (2011)/Season 1/s1-outer-foo.strm
./game of thrones (2011)/top-level-foo.strm

I verified that in the above structure, only s01e03 gets resolved to a single item having multiple versions. All other files above are resolved in the same way as before.


🔄 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/6316 **Author:** [@AllSeeingEyeTolledEweSew](https://github.com/AllSeeingEyeTolledEweSew) **Created:** 7/19/2021 **Status:** ❌ Closed **Base:** `master` ← **Head:** `asetes-episodes` --- ### 📝 Commits (1) - [`3cacb4f`](https://github.com/jellyfin/jellyfin/commit/3cacb4fd8b575dcb7f0ed9e9fc7eed4d846b145e) Support scanning multi-version episodes ### 📊 Changes **2 files changed** (+88 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `Emby.Server.Implementations/Library/Resolvers/TV/EpisodeResolver.cs` (+44 -1) 📝 `tests/Jellyfin.Server.Implementations.Tests/Library/EpisodeResolverTest.cs` (+44 -0) </details> ### 📄 Description **Changes** This is an attempt to implement https://features.jellyfin.org/posts/251/multiple-versions-drop-down-on-tv-series I added support for a directory structure like `Game of Thrones (2011)/Season 1/Episode S01E01/Episode S01E01 - v1.mkv`. The "episode directory" can hold multiple versions of the same episode, which get automatically picked up by the scanner. I attempted to *not* change any other case. I tested with the following directory structure: ``` ./game of thrones (2011)/extras/top-level-foo-in-extras.strm ./game of thrones (2011)/otherrrr/top-extra-foo.strm ./game of thrones (2011)/Season 1/Episode s01e01.strm ./game of thrones (2011)/Season 1/Episode s01e01 - version2.strm ./game of thrones (2011)/Season 1/Episode s01e02.strm ./game of thrones (2011)/Season 1/Episode s01e02 - version2.strm ./game of thrones (2011)/Season 1/Episode s01e03/Episode s01e03.strm ./game of thrones (2011)/Season 1/Episode s01e03/Episode s01e03 - version2.strm ./game of thrones (2011)/Season 1/extras/extra-level-two/s1-extra-level-two.strm ./game of thrones (2011)/Season 1/extras/s1-in-extras.strm ./game of thrones (2011)/Season 1/extras/s1-in-extras - version2.strm ./game of thrones (2011)/Season 1/otherr/s1-extra-bar.strm ./game of thrones (2011)/Season 1/otherr/s1-extra-foo.strm ./game of thrones (2011)/Season 1/s1-outer-foo.strm ./game of thrones (2011)/top-level-foo.strm ``` I verified that in the above structure, only s01e03 gets resolved to a single item having multiple versions. All other files above are resolved in the same way as before. --- <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 06:28:52 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#10903