mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-03 15:26:34 +01:00
switch to new CC url
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
public ChannelOptions()
|
||||
{
|
||||
DownloadingChannels = new string[] { };
|
||||
DownloadSizeLimit = 1;
|
||||
DownloadSizeLimit = .5;
|
||||
MaxDownloadAge = 30;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,18 +18,17 @@ namespace MediaBrowser.Model.Dlna
|
||||
|
||||
List<MediaSourceInfo> mediaSources = options.MediaSources;
|
||||
|
||||
// If the client wants a specific media soure, filter now
|
||||
// If the client wants a specific media source, filter now
|
||||
if (!string.IsNullOrEmpty(options.MediaSourceId))
|
||||
{
|
||||
// Avoid implicitly captured closure
|
||||
string mediaSourceId = options.MediaSourceId;
|
||||
|
||||
mediaSources = new List<MediaSourceInfo>();
|
||||
List<MediaSourceInfo> newMediaSources = new List<MediaSourceInfo>();
|
||||
foreach (MediaSourceInfo i in mediaSources)
|
||||
{
|
||||
if (StringHelper.EqualsIgnoreCase(i.Id, mediaSourceId))
|
||||
mediaSources.Add(i);
|
||||
if (StringHelper.EqualsIgnoreCase(i.Id, options.MediaSourceId))
|
||||
newMediaSources.Add(i);
|
||||
}
|
||||
|
||||
mediaSources = newMediaSources;
|
||||
}
|
||||
|
||||
List<StreamInfo> streams = new List<StreamInfo>();
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using MediaBrowser.Model.Drawing;
|
||||
using System.Globalization;
|
||||
using MediaBrowser.Model.Drawing;
|
||||
using MediaBrowser.Model.Dto;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Extensions;
|
||||
@@ -125,7 +126,8 @@ namespace MediaBrowser.Model.Dlna
|
||||
item.MaxWidth.HasValue ? StringHelper.ToStringCultureInvariant(item.MaxWidth.Value) : string.Empty,
|
||||
item.MaxHeight.HasValue ? StringHelper.ToStringCultureInvariant(item.MaxHeight.Value) : string.Empty,
|
||||
StringHelper.ToStringCultureInvariant(item.StartPositionTicks),
|
||||
item.VideoLevel.HasValue ? StringHelper.ToStringCultureInvariant(item.VideoLevel.Value) : string.Empty
|
||||
item.VideoLevel.HasValue ? StringHelper.ToStringCultureInvariant(item.VideoLevel.Value) : string.Empty,
|
||||
item.IsDirectStream ? string.Empty : DateTime.UtcNow.Ticks.ToString(CultureInfo.InvariantCulture)
|
||||
};
|
||||
|
||||
return string.Format("Params={0}", string.Join(";", list.ToArray()));
|
||||
|
||||
Reference in New Issue
Block a user