From a2ab34ef4cf4875013f8e54d9be6aea15c9bc04d Mon Sep 17 00:00:00 2001 From: Shadowghost Date: Mon, 20 May 2024 20:12:52 +0200 Subject: [PATCH] Rename provider to be run after normal season NFO provider --- MediaBrowser.XbmcMetadata/Parsers/SeriesNfoParser.cs | 2 +- ...omSeriesNfoParser.cs => SeriesNfoSeasonParser.cs} | 6 +++--- ...riesNfoProvider.cs => SeriesNfoSeasonProvider.cs} | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) rename MediaBrowser.XbmcMetadata/Parsers/{SeasonFromSeriesNfoParser.cs => SeriesNfoSeasonParser.cs} (91%) rename MediaBrowser.XbmcMetadata/Providers/{SeasonFromSeriesNfoProvider.cs => SeriesNfoSeasonProvider.cs} (86%) diff --git a/MediaBrowser.XbmcMetadata/Parsers/SeriesNfoParser.cs b/MediaBrowser.XbmcMetadata/Parsers/SeriesNfoParser.cs index 2774d8a576..d99e11bcd9 100644 --- a/MediaBrowser.XbmcMetadata/Parsers/SeriesNfoParser.cs +++ b/MediaBrowser.XbmcMetadata/Parsers/SeriesNfoParser.cs @@ -100,7 +100,7 @@ namespace MediaBrowser.XbmcMetadata.Parsers break; } - // Season names are processed by SeasonFromSeriesNfoParser + // Season names are processed by SeriesNfoSeasonParser case "namedseason": reader.Skip(); break; diff --git a/MediaBrowser.XbmcMetadata/Parsers/SeasonFromSeriesNfoParser.cs b/MediaBrowser.XbmcMetadata/Parsers/SeriesNfoSeasonParser.cs similarity index 91% rename from MediaBrowser.XbmcMetadata/Parsers/SeasonFromSeriesNfoParser.cs rename to MediaBrowser.XbmcMetadata/Parsers/SeriesNfoSeasonParser.cs index 620aed84cf..44ca3f472b 100644 --- a/MediaBrowser.XbmcMetadata/Parsers/SeasonFromSeriesNfoParser.cs +++ b/MediaBrowser.XbmcMetadata/Parsers/SeriesNfoSeasonParser.cs @@ -11,10 +11,10 @@ namespace MediaBrowser.XbmcMetadata.Parsers /// /// NFO parser for seasons based on series NFO. /// - public class SeasonFromSeriesNfoParser : BaseNfoParser + public class SeriesNfoSeasonParser : BaseNfoParser { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Instance of the interface. /// Instance of the interface. @@ -22,7 +22,7 @@ namespace MediaBrowser.XbmcMetadata.Parsers /// Instance of the interface. /// Instance of the interface. /// Instance of the interface. - public SeasonFromSeriesNfoParser( + public SeriesNfoSeasonParser( ILogger logger, IConfigurationManager config, IProviderManager providerManager, diff --git a/MediaBrowser.XbmcMetadata/Providers/SeasonFromSeriesNfoProvider.cs b/MediaBrowser.XbmcMetadata/Providers/SeriesNfoSeasonProvider.cs similarity index 86% rename from MediaBrowser.XbmcMetadata/Providers/SeasonFromSeriesNfoProvider.cs rename to MediaBrowser.XbmcMetadata/Providers/SeriesNfoSeasonProvider.cs index a8bf4b4e14..b141b7afb9 100644 --- a/MediaBrowser.XbmcMetadata/Providers/SeasonFromSeriesNfoProvider.cs +++ b/MediaBrowser.XbmcMetadata/Providers/SeriesNfoSeasonProvider.cs @@ -13,9 +13,9 @@ namespace MediaBrowser.XbmcMetadata.Providers /// /// NFO provider for seasons based on series NFO. /// - public class SeasonFromSeriesNfoProvider : BaseNfoProvider + public class SeriesNfoSeasonProvider : BaseNfoProvider { - private readonly ILogger _logger; + private readonly ILogger _logger; private readonly IConfigurationManager _config; private readonly IProviderManager _providerManager; private readonly IUserManager _userManager; @@ -24,7 +24,7 @@ namespace MediaBrowser.XbmcMetadata.Providers private readonly ILibraryManager _libraryManager; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// Instance of the interface. /// Instance of the interface. @@ -34,8 +34,8 @@ namespace MediaBrowser.XbmcMetadata.Providers /// Instance of the interface. /// Instance of the interface. /// Instance of the interface. - public SeasonFromSeriesNfoProvider( - ILogger logger, + public SeriesNfoSeasonProvider( + ILogger logger, IFileSystem fileSystem, IConfigurationManager config, IProviderManager providerManager, @@ -57,7 +57,7 @@ namespace MediaBrowser.XbmcMetadata.Providers /// protected override void Fetch(MetadataResult result, string path, CancellationToken cancellationToken) { - new SeasonFromSeriesNfoParser(_logger, _config, _providerManager, _userManager, _userDataManager, _directoryService).Fetch(result, path, cancellationToken); + new SeriesNfoSeasonParser(_logger, _config, _providerManager, _userManager, _userDataManager, _directoryService).Fetch(result, path, cancellationToken); } ///