mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
Labels
No labels
area:database
awaiting-feedback
backend
blocked
breaking change: web api
bug
build
ci
confirmed
discussion needed
dotnet future
downstream
duplicate
EFjellyfin.db
enhancement
feature
future
github-actions
good first issue
hdr
help wanted
invalid
investigation
librarydb
live-tv
lyrics
media playback
music
needs testing
nuget
performance
platform
pull-request
question
regression
release critical
requires-web
roadmap
security
security
stale
support
syncplay
ui & ux
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/jellyfin#12924
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/12170
Author: @mcmcelro
Created: 6/24/2024
Status: ✅ Merged
Merged: 3/28/2025
Merged by: @crobibero
Base:
master← Head:fix-extraruleresolver-filtering-out-top-level-folders📝 Commits (9)
d204bb1Fix ExtraRuleResolver to stop filtering out libraries where the name of the base folder matches an 'videos extras' rule with an ExtraRuleType of DirectoryNamedab1a99Update CONTRIBUTORS.md36771fdUpdate Emby.Naming/Video/ExtraRuleResolver.cs83fe977Update ExtraTests.csb4d42eeUpdate ExtraTests.cs51d7179In MediaBrowser.Model, upgrade System.Text.Json from 8.0.3 (vulnerable - high risk) to 8.0.4f863643Update ExtraTests.cs42224dfRevert "In MediaBrowser.Model, upgrade System.Text.Json from 8.0.3 (vulnerable - high risk) to 8.0.4"f2af508Merge branch 'master' into fix-extraruleresolver-filtering-out-top-level-folders📊 Changes
8 files changed (+84 additions, -16 deletions)
View changed files
📝
CONTRIBUTORS.md(+1 -0)📝
Emby.Naming/Video/ExtraRuleResolver.cs(+5 -2)📝
Emby.Naming/Video/VideoListResolver.cs(+3 -2)📝
Emby.Naming/Video/VideoResolver.cs(+9 -6)📝
Emby.Server.Implementations/Library/LibraryManager.cs(+1 -1)📝
Emby.Server.Implementations/Library/Resolvers/ExtraResolver.cs(+2 -2)📝
Emby.Server.Implementations/Library/Resolvers/Movies/MovieResolver.cs(+2 -2)📝
tests/Jellyfin.Naming.Tests/Video/ExtraTests.cs(+61 -1)📄 Description
Changes
Fix ExtraRuleResolver to stop filtering out libraries where the name of the base folder matches a 'videos extras' rule with an ExtraRuleType of DirectoryName.
Currently the ExtraRuleResolver code doesn't know anything about the root folder of the current library. As a result, when we're attempting to add items in a library where the root folder has a name with a match in Emby.Naming.Common.NamingOptions.VideoExtraRules, the entire library is being ignored as a Video Extras folder.
We need to pass in the root folder of the current library to compare to the path of the current item being evaluated, and if we match the current item's folder to the root folder, then we ignore the ExtraRules with a type of DirectoryName and we continue to scan deeper in the library. Filters still apply to subfolders within the library itself.
Issues
Fixes #12142.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.