jellyfin/MediaBrowser.Controller/Channels/ChannelAudioItem.cs

57 lines
1.4 KiB
C#
Raw Normal View History

2014-05-18 21:58:42 +02:00
using MediaBrowser.Controller.Entities.Audio;
2014-05-03 06:20:04 +02:00
using MediaBrowser.Model.Configuration;
2014-05-18 21:58:42 +02:00
using MediaBrowser.Model.Entities;
using System.Collections.Generic;
using System.Linq;
2014-03-18 02:45:41 +01:00
namespace MediaBrowser.Controller.Channels
{
2014-03-19 02:35:40 +01:00
public class ChannelAudioItem : Audio, IChannelMediaItem
2014-03-18 02:45:41 +01:00
{
public string ExternalId { get; set; }
2014-05-05 02:46:52 +02:00
public string ChannelId { get; set; }
2014-03-18 02:45:41 +01:00
public ChannelItemType ChannelItemType { get; set; }
public bool IsInfiniteStream { get; set; }
public ChannelMediaContentType ContentType { get; set; }
public string OriginalImageUrl { get; set; }
2014-05-03 06:20:04 +02:00
2014-05-18 21:58:42 +02:00
public List<ChannelMediaInfo> ChannelMediaSources { get; set; }
2014-05-03 06:20:04 +02:00
protected override bool GetBlockUnratedValue(UserConfiguration config)
{
return config.BlockUnratedItems.Contains(UnratedItem.ChannelContent);
}
public override bool SupportsLocalMetadata
{
get
{
return false;
}
}
2014-05-18 21:58:42 +02:00
public ChannelAudioItem()
{
ChannelMediaSources = new List<ChannelMediaInfo>();
}
public override LocationType LocationType
{
get
{
if (string.IsNullOrEmpty(Path))
{
return LocationType.Remote;
}
return base.LocationType;
}
}
2014-03-18 02:45:41 +01:00
}
}