switch to new CC url

This commit is contained in:
Luke Pulverenti
2014-09-18 00:50:21 -04:00
parent 3509a401c8
commit 1e7ae8301d
63 changed files with 2277 additions and 536 deletions

View File

@@ -14,7 +14,7 @@
public ChannelOptions()
{
DownloadingChannels = new string[] { };
DownloadSizeLimit = 1;
DownloadSizeLimit = .5;
MaxDownloadAge = 30;
}
}

View File

@@ -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>();

View File

@@ -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()));