The Free Software Media System - Server Backend & API
update nuget
Luke Pulverenti0ad015043532
diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.csindex 0ce69970f2..1eb169bf9b 100644--- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs+++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs@@ -67,7 +67,7 @@ namespace MediaBrowser.Model.Configuration/// </summary>/// <value><c>true</c> if [enable case sensitive item ids]; otherwise, <c>false</c>.</value>public bool EnableCaseSensitiveItemIds { get; set; }-+/// <summary>/// Gets or sets the metadata path./// </summary>@@ -155,7 +155,7 @@ namespace MediaBrowser.Model.Configuration/// </summary>/// <value>The dashboard source path.</value>public string DashboardSourcePath { get; set; }-+/// <summary>/// Gets or sets the image saving convention./// </summary>@@ -201,12 +201,14 @@ namespace MediaBrowser.Model.Configurationpublic bool EnableFolderView { get; set; }public bool EnableGroupingIntoCollections { get; set; }public bool DisplaySpecialsWithinSeasons { get; set; }+ public string[] LocalNetworkAddresses { get; set; }/// <summary>/// Initializes a new instance of the <see cref="ServerConfiguration" /> class./// </summary>public ServerConfiguration(){+ LocalNetworkAddresses = new string[] { };Migrations = new string[] { };EnableCustomPathSubFolders = true;diff --git a/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs b/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.csindex 6e57b4022a..d76c89dfb8 100644--- a/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs+++ b/MediaBrowser.Providers/Music/MusicBrainzAlbumProvider.cs@@ -25,7 +25,7 @@ namespace MediaBrowser.Providers.Musicprivate readonly IApplicationHost _appHost;private readonly ILogger _logger;- public static string MusicBrainzBaseUrl = "https://www.musicbrainz.org";+ public static string MusicBrainzBaseUrl = "http://musicbrainz.fercasas.com:5000";public MusicBrainzAlbumProvider(IHttpClient httpClient, IApplicationHost appHost, ILogger logger){diff --git a/MediaBrowser.Server.Implementations/MediaBrowser.Server.Implementations.csproj b/MediaBrowser.Server.Implementations/MediaBrowser.Server.Implementations.csprojindex 5dc0640356..52ffe3a4b4 100644--- a/MediaBrowser.Server.Implementations/MediaBrowser.Server.Implementations.csproj+++ b/MediaBrowser.Server.Implementations/MediaBrowser.Server.Implementations.csproj@@ -46,7 +46,7 @@<HintPath>..\packages\CommonIO.1.0.0.9\lib\net45\CommonIO.dll</HintPath></Reference><Reference Include="Emby.XmlTv, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">- <HintPath>..\packages\Emby.XmlTv.1.0.0.50\lib\net45\Emby.XmlTv.dll</HintPath>+ <HintPath>..\packages\Emby.XmlTv.1.0.0.51\lib\net45\Emby.XmlTv.dll</HintPath><Private>True</Private></Reference><Reference Include="INIFileParser, Version=2.3.0.0, Culture=neutral, PublicKeyToken=79af7b307b65cf3c, processorArchitecture=MSIL">diff --git a/MediaBrowser.Server.Implementations/packages.config b/MediaBrowser.Server.Implementations/packages.configindex 516bf32716..badc3f2c1f 100644--- a/MediaBrowser.Server.Implementations/packages.config+++ b/MediaBrowser.Server.Implementations/packages.config@@ -1,7 +1,7 @@<?xml version="1.0" encoding="utf-8"?><packages><package id="CommonIO" version="1.0.0.9" targetFramework="net45" />- <package id="Emby.XmlTv" version="1.0.0.50" targetFramework="net45" />+ <package id="Emby.XmlTv" version="1.0.0.51" targetFramework="net45" /><package id="ini-parser" version="2.3.0" targetFramework="net45" /><package id="Interfaces.IO" version="1.0.0.5" targetFramework="net45" /><package id="MediaBrowser.Naming" version="1.0.0.51" targetFramework="net45" />diff --git a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs b/MediaBrowser.Server.Startup.Common/ApplicationHost.csindex 75e3bb7f5c..23710479bc 100644--- a/MediaBrowser.Server.Startup.Common/ApplicationHost.cs+++ b/MediaBrowser.Server.Startup.Common/ApplicationHost.cs@@ -833,17 +833,40 @@ namespace MediaBrowser.Server.Startup.Commonprivate IEnumerable<string> GetUrlPrefixes(){- var prefixes = new List<string>- {- "http://+:" + ServerConfigurationManager.Configuration.HttpServerPortNumber + "/"- };+ var hosts = ServerConfigurationManager.Configuration.LocalNetworkAddresses.ToList();++ if (hosts.Count == 0)+ {+ hosts.Add("+");+ }- if (!string.IsNullOrWhiteSpace(CertificatePath))+ if (!hosts.Contains("+", StringComparer.OrdinalIgnoreCase)){- prefixes.Add("https://+:" + ServerConfigurationManager.Configuration.HttpsPortNumber + "/");+ if (!hosts.Contains("localhost", StringComparer.OrdinalIgnoreCase))+ {+ hosts.Add("localhost");+ }++ if (!hosts.Contains("127.0.0.1", StringComparer.OrdinalIgnoreCase))+ {+ hosts.Add("127.0.0.1");+ }}- return prefixes;+ return hosts.SelectMany(i =>+ {+ var prefixes = new List<string>+ {+ "http://"+i+":" + ServerConfigurationManager.Configuration.HttpServerPortNumber + "/"+ };++ if (!string.IsNullOrWhiteSpace(CertificatePath))+ {+ prefixes.Add("https://" + i + ":" + ServerConfigurationManager.Configuration.HttpsPortNumber + "/");+ }++ return prefixes;+ });}/// <summary>