|
@@ -1,25 +1,19 @@
|
|
|
using MediaBrowser.Common.IO;
|
|
|
using MediaBrowser.Controller.Configuration;
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
-using MediaBrowser.Controller.Library;
|
|
|
using MediaBrowser.Controller.Providers;
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
using MediaBrowser.Model.Logging;
|
|
|
using MediaBrowser.Providers.Manager;
|
|
|
using System.Collections.Generic;
|
|
|
-using System.Threading;
|
|
|
-using System.Threading.Tasks;
|
|
|
|
|
|
namespace MediaBrowser.Providers.Games
|
|
|
{
|
|
|
public class GameMetadataService : MetadataService<Game, GameInfo>
|
|
|
{
|
|
|
- private readonly ILibraryManager _libraryManager;
|
|
|
-
|
|
|
- public GameMetadataService(IServerConfigurationManager serverConfigurationManager, ILogger logger, IProviderManager providerManager, IProviderRepository providerRepo, IFileSystem fileSystem, ILibraryManager libraryManager)
|
|
|
+ public GameMetadataService(IServerConfigurationManager serverConfigurationManager, ILogger logger, IProviderManager providerManager, IProviderRepository providerRepo, IFileSystem fileSystem)
|
|
|
: base(serverConfigurationManager, logger, providerManager, providerRepo, fileSystem)
|
|
|
{
|
|
|
- _libraryManager = libraryManager;
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -38,6 +32,11 @@ namespace MediaBrowser.Providers.Games
|
|
|
{
|
|
|
target.GameSystem = source.GameSystem;
|
|
|
}
|
|
|
+
|
|
|
+ if (replaceData || !target.PlayersSupported.HasValue)
|
|
|
+ {
|
|
|
+ target.PlayersSupported = source.PlayersSupported;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|