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