aboutsummaryrefslogtreecommitdiff
path: root/Emby.Naming/Video/VideoListResolver.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"
2024-09-18Sort by version name before resolution sorting (#12621)gnattu
2023-06-28Use RegexGenerator where possibleBond_009
2023-02-20Improve alternate ordering (#9336)Bond-009
2023-02-17Reduce string allocations by regexBond_009
2023-02-15Make exact match primary videoBond_009
2022-12-05Replace != null with is not nullBond_009
2022-12-05Replace == null with is nullBond_009
2021-12-28Use dedicated resolvers for extrascvium
2021-12-20Fix buildcvium
2021-12-20Fix extras folderscvium
2021-12-07Refactor extras parsingcvium
2021-07-06Minor fixesBond_009
2021-05-28Update Emby.Naming/Video/VideoListResolver.csClaus Vium
Co-authored-by: Bond-009 <bond.009@outlook.com>
2021-05-24Remove some unnecessary allocationscvium
2021-03-15revert underscore as a multiversion separatorcvium
2021-03-10make the eligibility check more strict wrt. bracketscvium
2021-03-10fix multiversion eligibility check for complex folder namescvium
2021-01-21100% branch coverage for Jellyfin.NamingBond_009
2020-11-22Fix testscrobibero
2020-11-22Only trim file name if folder name is shortercrobibero
2020-11-18Fixes spelling.Greenback
2020-11-12One more missed suggestions (removing commented out code)Stepan
2020-11-12Taken suggestions from code review and created test for ExtraRuleType.Regex ↵Stepan
instead of throwing exception there.
2020-11-12Apply suggestions from code reviewmartinek-stepan
Co-authored-by: BaronGreenback <jimcartlidge@yahoo.co.uk>
2020-11-10Xml-doc part2Stepan
2020-11-10Xml-doc part1Stepan
2020-11-05Enable MultiVersion video tests and added support for naming based on tests ↵Stepan
11 & 8
2020-11-01Re-Sharper inspection issuesStepan
2020-11-01Enable nullable in Emby.NamingStepan
2020-05-15Fix a check broken by https://github.com/jellyfin/jellyfin/pull/2105Vasily
2020-03-25implement suggestionscrobibero
2020-03-25implement suggestionscrobibero
2020-03-25Fix warnings in Emby.Namingcrobibero
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-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-06-01Fix more warningsBond-009
2019-02-19Check for whitespaceClaus Vium
2019-02-19Remove limit commentClaus Vium
2019-02-19Remove arbitrary limit and minor style fixesClaus Vium
2019-02-19Revert "Change multi version logic for movies"Claus Vium
This reverts commit a4055779f6c824cc0289dfb4f77dc094f2de850a.
2019-02-19Revert "Remove unnecessary ToList"Claus Vium
This reverts commit 42abb5a9931806a2ae1cedd433144ebf82768a0d.
2019-02-19Revert "Add Year to the new VideoInfo"Claus Vium
This reverts commit 05ad2e9b3f5209d9e7ff9949d8c20cd8ef7062b6.
2019-02-19Revert "Merge pull request #924 from cvium/fix_movie_matching"Claus Vium
This reverts commit f274d024ceaacc23f0a30697aab8c0dfb05c402c, reversing changes made to 4b4399fba6df3368ab04e78acd2dd08873e4f07b.
2019-02-19Revert "Merge pull request #933 from cvium/fix_movie_matching_again"Claus Vium
This reverts commit 77d4fec6eb75b9b26a24e0678c7a75d8decb2e29, reversing changes made to f274d024ceaacc23f0a30697aab8c0dfb05c402c.
2019-02-18Minor style fixesClaus Vium
2019-02-18Semi-revert to prefer old movie grouping behaviourClaus Vium