mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 17:14:42 +01:00
update audio queries
This commit is contained in:
@@ -26,9 +26,6 @@ namespace MediaBrowser.Controller.Entities.Audio
|
||||
{
|
||||
public List<ChannelMediaInfo> ChannelMediaSources { get; set; }
|
||||
|
||||
public int? TotalBitrate { get; set; }
|
||||
public ExtraType? ExtraType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the artist.
|
||||
/// </summary>
|
||||
@@ -37,15 +34,6 @@ namespace MediaBrowser.Controller.Entities.Audio
|
||||
|
||||
public List<string> AlbumArtists { get; set; }
|
||||
|
||||
[IgnoreDataMember]
|
||||
public override bool IsThemeMedia
|
||||
{
|
||||
get
|
||||
{
|
||||
return ExtraType.HasValue && ExtraType.Value == Model.Entities.ExtraType.ThemeSong;
|
||||
}
|
||||
}
|
||||
|
||||
[IgnoreDataMember]
|
||||
public override bool EnableRefreshOnDateModifiedChange
|
||||
{
|
||||
|
||||
@@ -203,12 +203,15 @@ namespace MediaBrowser.Controller.Entities
|
||||
get { return PremiereDate.HasValue && PremiereDate.Value.ToLocalTime().Date >= DateTime.Now.Date; }
|
||||
}
|
||||
|
||||
public int? TotalBitrate { get; set; }
|
||||
public ExtraType? ExtraType { get; set; }
|
||||
|
||||
[IgnoreDataMember]
|
||||
public virtual bool IsThemeMedia
|
||||
public bool IsThemeMedia
|
||||
{
|
||||
get
|
||||
{
|
||||
return false;
|
||||
return ExtraType.HasValue && (ExtraType.Value == Model.Entities.ExtraType.ThemeSong || ExtraType.Value == Model.Entities.ExtraType.ThemeVideo);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1045,7 +1048,7 @@ namespace MediaBrowser.Controller.Entities
|
||||
audio = dbItem;
|
||||
}
|
||||
|
||||
audio.ExtraType = ExtraType.ThemeSong;
|
||||
audio.ExtraType = MediaBrowser.Model.Entities.ExtraType.ThemeSong;
|
||||
|
||||
return audio;
|
||||
|
||||
@@ -1075,7 +1078,7 @@ namespace MediaBrowser.Controller.Entities
|
||||
item = dbItem;
|
||||
}
|
||||
|
||||
item.ExtraType = ExtraType.ThemeVideo;
|
||||
item.ExtraType = MediaBrowser.Model.Entities.ExtraType.ThemeVideo;
|
||||
|
||||
return item;
|
||||
|
||||
@@ -1225,7 +1228,7 @@ namespace MediaBrowser.Controller.Entities
|
||||
|
||||
if (!i.IsThemeMedia)
|
||||
{
|
||||
i.ExtraType = ExtraType.ThemeVideo;
|
||||
i.ExtraType = MediaBrowser.Model.Entities.ExtraType.ThemeVideo;
|
||||
subOptions.ForceSave = true;
|
||||
}
|
||||
|
||||
@@ -1255,7 +1258,7 @@ namespace MediaBrowser.Controller.Entities
|
||||
|
||||
if (!i.IsThemeMedia)
|
||||
{
|
||||
i.ExtraType = ExtraType.ThemeSong;
|
||||
i.ExtraType = MediaBrowser.Model.Entities.ExtraType.ThemeSong;
|
||||
subOptions.ForceSave = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -35,15 +35,6 @@ namespace MediaBrowser.Controller.Entities
|
||||
public List<LinkedChild> LinkedAlternateVersions { get; set; }
|
||||
public List<ChannelMediaInfo> ChannelMediaSources { get; set; }
|
||||
|
||||
[IgnoreDataMember]
|
||||
public override bool IsThemeMedia
|
||||
{
|
||||
get
|
||||
{
|
||||
return ExtraType.HasValue && ExtraType.Value == Model.Entities.ExtraType.ThemeVideo;
|
||||
}
|
||||
}
|
||||
|
||||
[IgnoreDataMember]
|
||||
public override bool SupportsPlayedStatus
|
||||
{
|
||||
@@ -87,9 +78,6 @@ namespace MediaBrowser.Controller.Entities
|
||||
get { return true; }
|
||||
}
|
||||
|
||||
public int? TotalBitrate { get; set; }
|
||||
public ExtraType? ExtraType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the timestamp.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user