jellyfin/Emby.Server.Implementations
Michael McElroy f02190c394
Fix for Issue #12142: Fix ExtraRuleResolver filtering out top level folders (#12170)
* Fix ExtraRuleResolver to stop filtering out libraries where the name of the base folder matches an '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.

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.

* Update CONTRIBUTORS.md

* Update Emby.Naming/Video/ExtraRuleResolver.cs

* Update ExtraTests.cs

Add tests for this fix.

Also add missing tests in TestKodiExtras, TestExpandedExtras, and TestSample, and expanded TestDirectories into TestDirectoriesAudioExtras and TestDirectoriesVideoExtras. There were no checks for the theme-music folder name previously.

* Update ExtraTests.cs

Removed unnecessary "using System"

* In MediaBrowser.Model, upgrade System.Text.Json from 8.0.3 (vulnerable - high risk) to 8.0.4

* Update ExtraTests.cs

Remove empty lines in usings

* Revert "In MediaBrowser.Model, upgrade System.Text.Json from 8.0.3 (vulnerable - high risk) to 8.0.4"
2025-03-27 18:18:19 -06:00
..
AppBase
Branding
Collections Fixed namespaces 2025-03-25 16:45:00 +01:00
Configuration
Cryptography
Data WIP fixed namespaces 2025-03-25 15:30:22 +00:00
Devices
Dto Fixed namespaces 2025-03-25 16:45:00 +01:00
EntryPoints Fixed namespaces 2025-03-25 16:45:00 +01:00
HttpServer WIP fixed namespaces 2025-03-25 15:30:22 +00:00
Images WIP fixed namespaces 2025-03-25 15:30:22 +00:00
IO Add ability to provide search pattern 2025-03-11 21:04:12 +00:00
Library Fix for Issue #12142: Fix ExtraRuleResolver filtering out top level folders (#12170) 2025-03-27 18:18:19 -06:00
Localization Change the order of the iso6392.txt file (#13314) 2025-03-26 20:25:53 -06:00
MediaEncoder
Playlists Fixed namespaces 2025-03-25 16:45:00 +01:00
Plugins
Properties
QuickConnect
ScheduledTasks Merge pull request #13589 from JPVenson/feature/DatabaseRefactor 2025-03-25 21:34:26 -06:00
Serialization
Session Fix consumer count off by one when closing a browser tab with a livestream that is transcoding (#13220) 2025-03-27 17:59:08 -06:00
Sorting Fixed namespaces 2025-03-25 16:45:00 +01:00
SyncPlay Fixed namespaces 2025-03-25 16:45:00 +01:00
TV Fixed namespaces 2025-03-25 16:45:00 +01:00
Updates
ApplicationHost.cs WIP fixed namespaces 2025-03-25 15:30:22 +00:00
ConfigurationOptions.cs
Emby.Server.Implementations.csproj Implement limiting caches (#13605) 2025-03-27 18:16:54 -06:00
IStartupOptions.cs
ServerApplicationPaths.cs
SystemManager.cs