ChannelAudioItem.cs 893 B

12345678910111213141516171819202122232425262728293031323334
  1. using System.Linq;
  2. using MediaBrowser.Controller.Entities.Audio;
  3. using MediaBrowser.Model.Configuration;
  4. namespace MediaBrowser.Controller.Channels
  5. {
  6. public class ChannelAudioItem : Audio, IChannelMediaItem
  7. {
  8. public string ExternalId { get; set; }
  9. public string ChannelId { get; set; }
  10. public ChannelItemType ChannelItemType { get; set; }
  11. public bool IsInfiniteStream { get; set; }
  12. public ChannelMediaContentType ContentType { get; set; }
  13. public string OriginalImageUrl { get; set; }
  14. protected override bool GetBlockUnratedValue(UserConfiguration config)
  15. {
  16. return config.BlockUnratedItems.Contains(UnratedItem.ChannelContent);
  17. }
  18. public override bool SupportsLocalMetadata
  19. {
  20. get
  21. {
  22. return false;
  23. }
  24. }
  25. }
  26. }