jellyfin/MediaBrowser.Providers/Folders/CollectionFolderMetadataService.cs

41 lines
2.1 KiB
C#
Raw Normal View History

using System.Collections.Generic;
2016-10-25 19:02:04 +00:00
using MediaBrowser.Common.IO;
using MediaBrowser.Model.IO;
2016-09-05 20:07:36 +00:00
using MediaBrowser.Controller.Collections;
2016-04-16 02:18:40 +00:00
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Entities;
2016-10-25 19:02:04 +00:00
using MediaBrowser.Controller.IO;
2016-04-16 02:18:40 +00:00
using MediaBrowser.Controller.Library;
using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Logging;
using MediaBrowser.Providers.Manager;
namespace MediaBrowser.Providers.Folders
{
public class CollectionFolderMetadataService : MetadataService<CollectionFolder, ItemLookupInfo>
{
2016-05-21 06:12:00 +00:00
protected override void MergeData(MetadataResult<CollectionFolder> source, MetadataResult<CollectionFolder> target, List<MetadataFields> lockedFields, bool replaceData, bool mergeMetadataSettings)
2016-04-16 02:18:40 +00:00
{
2016-05-21 06:12:00 +00:00
ProviderUtils.MergeBaseItemData(source, target, lockedFields, replaceData, mergeMetadataSettings);
2016-04-16 02:18:40 +00:00
}
2016-05-21 06:12:00 +00:00
public CollectionFolderMetadataService(IServerConfigurationManager serverConfigurationManager, ILogger logger, IProviderManager providerManager, IFileSystem fileSystem, IUserDataManager userDataManager, ILibraryManager libraryManager) : base(serverConfigurationManager, logger, providerManager, fileSystem, userDataManager, libraryManager)
2016-04-16 02:18:40 +00:00
{
}
}
2016-09-05 20:07:36 +00:00
public class ManualCollectionsFolderMetadataService : MetadataService<ManualCollectionsFolder, ItemLookupInfo>
{
protected override void MergeData(MetadataResult<ManualCollectionsFolder> source, MetadataResult<ManualCollectionsFolder> target, List<MetadataFields> lockedFields, bool replaceData, bool mergeMetadataSettings)
{
ProviderUtils.MergeBaseItemData(source, target, lockedFields, replaceData, mergeMetadataSettings);
}
public ManualCollectionsFolderMetadataService(IServerConfigurationManager serverConfigurationManager, ILogger logger, IProviderManager providerManager, IFileSystem fileSystem, IUserDataManager userDataManager, ILibraryManager libraryManager) : base(serverConfigurationManager, logger, providerManager, fileSystem, userDataManager, libraryManager)
{
}
}
2016-04-16 02:18:40 +00:00
}