ChannelAudioItem.cs 838 B

1234567891011121314151617181920212223242526272829303132
  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 ChannelItemType ChannelItemType { get; set; }
  10. public bool IsInfiniteStream { get; set; }
  11. public ChannelMediaContentType ContentType { get; set; }
  12. public string OriginalImageUrl { get; set; }
  13. protected override bool GetBlockUnratedValue(UserConfiguration config)
  14. {
  15. return config.BlockUnratedItems.Contains(UnratedItem.ChannelContent);
  16. }
  17. public override bool SupportsLocalMetadata
  18. {
  19. get
  20. {
  21. return false;
  22. }
  23. }
  24. }
  25. }