mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-03 07:16:31 +01:00
update active recordings
This commit is contained in:
@@ -432,7 +432,7 @@ namespace MediaBrowser.Model.Dto
|
||||
/// Gets or sets the artists.
|
||||
/// </summary>
|
||||
/// <value>The artists.</value>
|
||||
public List<string> Artists { get; set; }
|
||||
public string[] Artists { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the artist items.
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
using MediaBrowser.Model.Extensions;
|
||||
using MediaBrowser.Model.MediaInfo;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using MediaBrowser.Model.Serialization;
|
||||
using MediaBrowser.Model.Session;
|
||||
|
||||
@@ -91,19 +90,15 @@ namespace MediaBrowser.Model.Dto
|
||||
return;
|
||||
}
|
||||
|
||||
var internalStreams = MediaStreams
|
||||
.Where(i => !i.IsExternal)
|
||||
.ToList();
|
||||
|
||||
if (internalStreams.Count == 0)
|
||||
var bitrate = 0;
|
||||
foreach (var stream in MediaStreams)
|
||||
{
|
||||
return;
|
||||
if (!stream.IsExternal)
|
||||
{
|
||||
bitrate += stream.BitRate ?? 0;
|
||||
}
|
||||
}
|
||||
|
||||
var bitrate = internalStreams
|
||||
.Select(m => m.BitRate ?? 0)
|
||||
.Sum();
|
||||
|
||||
if (bitrate > 0)
|
||||
{
|
||||
Bitrate = bitrate;
|
||||
|
||||
Reference in New Issue
Block a user