AudioChannelItemMetadataService.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132
  1. using System.Collections.Generic;
  2. using MediaBrowser.Common.IO;
  3. using MediaBrowser.Controller.Channels;
  4. using MediaBrowser.Controller.Configuration;
  5. using MediaBrowser.Controller.Library;
  6. using MediaBrowser.Controller.Providers;
  7. using MediaBrowser.Model.Entities;
  8. using MediaBrowser.Model.Logging;
  9. using MediaBrowser.Providers.Manager;
  10. namespace MediaBrowser.Providers.Channels
  11. {
  12. public class AudioChannelItemMetadataService : MetadataService<ChannelAudioItem, ItemLookupInfo>
  13. {
  14. public AudioChannelItemMetadataService(IServerConfigurationManager serverConfigurationManager, ILogger logger, IProviderManager providerManager, IProviderRepository providerRepo, IFileSystem fileSystem, IUserDataManager userDataManager) : base(serverConfigurationManager, logger, providerManager, providerRepo, fileSystem, userDataManager)
  15. {
  16. }
  17. /// <summary>
  18. /// Merges the specified source.
  19. /// </summary>
  20. /// <param name="source">The source.</param>
  21. /// <param name="target">The target.</param>
  22. /// <param name="lockedFields">The locked fields.</param>
  23. /// <param name="replaceData">if set to <c>true</c> [replace data].</param>
  24. /// <param name="mergeMetadataSettings">if set to <c>true</c> [merge metadata settings].</param>
  25. protected override void MergeData(ChannelAudioItem source, ChannelAudioItem target, List<MetadataFields> lockedFields, bool replaceData, bool mergeMetadataSettings)
  26. {
  27. ProviderUtils.MergeBaseItemData(source, target, lockedFields, replaceData, mergeMetadataSettings);
  28. }
  29. }
  30. }