aboutsummaryrefslogtreecommitdiff
path: root/Emby.Naming/Video/VideoResolver.cs
AgeCommit message (Collapse)Author
2025-03-27Fix for Issue #12142: Fix ExtraRuleResolver filtering out top level folders ↵Michael McElroy
(#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"
2023-03-09Clean Extra NamesSenorSmartyPants
- Adds regular expression to CleanStrings to remove suffix style extra naming from the name presented in JF. - Override Resolve for Extras to enable parsename - remove exclusion on parsename of extratypes
2022-12-05Replace == null with is nullBond_009
2021-12-28Use dedicated resolvers for extrascvium
2021-12-07Refactor extras parsingcvium
2021-10-26Change ReadOnlySpan to string following PR 6383 (#6734)Claus Vium
2021-06-19Move non-jellyfin extensions to separate projectBond_009
2021-05-24Remove some unnecessary allocationscvium
2021-05-19Review changescvium
2021-05-16Reduce some allocationscvium
2021-03-09Add code analysis attributes where appropriateBond_009
2021-01-21100% branch coverage for Jellyfin.NamingBond_009
2020-11-10Xml-doc part2Stepan
2020-11-10Xml-doc part1Stepan
2020-11-05Finish coverage for Emby.Naming.VideoStepan
2020-11-01Enable nullable in Emby.NamingStepan
2020-04-25Address commentsBond_009
2020-04-21Fix VideoResolver and testsBond_009
2020-02-23Fix some warningsBond_009
* Add analyzers to MediaBrowser.XbmcMetadata * Enable TreatWarningsAsErrors for MediaBrowser.XbmcMetadata * Add analyzers to MediaBrowser.WebDashboard * Enable TreatWarningsAsErrors for MediaBrowser.WebDashboard * Disable SA1600 in favor of CS1591
2020-01-22Clean up Emby.NamingBond_009
2020-01-11Clean up some moreBond_009
2020-01-11Improve parsersBond_009
2020-01-11Fix a couple of testsBond_009
2020-01-09Merge branch 'master' into namingtestsBond_009
2019-12-13Enable TreatWarningsAsErrors for some projectsBond_009
Analyzers are only run in debug build, so setting TreatWarningsAsErrors for release build will catch the compiler warnings until we resolve all analyzer warnings.
2019-12-06Add back all old emby testsBond_009
2019-11-22Fix some warningsBond-009
2019-06-01Fix more warningsBond-009
2019-01-20Minor improvements to library scan codeBond_009
2019-01-13ReSharper conform to 'var' settingsErwin de Haan
2019-01-13Find+Sed BOM removal *.cs: BDInfo-Emby.XmlTvErwin de Haan
2019-01-13Visual Studio Reformat: Emby.NamingErwin de Haan
2019-01-10Mayor code cleanupErwin de Haan
Add Argument*Exceptions now use proper nameof operators. Added exception messages to quite a few Argument*Exceptions. Fixed rethorwing to be proper syntax. Added a ton of null checkes. (This is only a start, there are about 500 places that need proper null handling) Added some TODOs to log certain exceptions. Fix sln again. Fixed all AssemblyInfo's and added proper copyright (where I could find them) We live in *current year*. Fixed the use of braces. Fixed a ton of properties, and made a fair amount of functions static that should be and can be static. Made more Methods that should be static static. You can now use static to find bad functions! Removed unused variable. And added one more proper XML comment.
2018-09-12Update to 3.5.2 and .net core 2.1stefan