From 58eb50095676ec8bb4f7d4e1d0fc766dd3280305 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 6 Sep 2014 00:21:23 -0400 Subject: fixes #914 - Add option to save metadata hidden --- .../Connect/ConnectManager.cs | 6 +-- .../HttpServer/Security/AuthService.cs | 2 +- .../Library/LibraryManager.cs | 22 +--------- .../Localization/Server/server.json | 48 ++++++++++++---------- 4 files changed, 32 insertions(+), 46 deletions(-) (limited to 'MediaBrowser.Server.Implementations') diff --git a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs index dc03f14cb..c406e48b9 100644 --- a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs +++ b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs @@ -1,5 +1,4 @@ -using System.Net; -using MediaBrowser.Common.Configuration; +using MediaBrowser.Common.Configuration; using MediaBrowser.Common.Net; using MediaBrowser.Controller; using MediaBrowser.Controller.Configuration; @@ -12,6 +11,7 @@ using System; using System.Collections.Generic; using System.Globalization; using System.IO; +using System.Net; using System.Text; using System.Threading; using System.Threading.Tasks; @@ -77,7 +77,7 @@ namespace MediaBrowser.Server.Implementations.Connect { WanIpAddress = address; - UpdateConnectInfo(); + //UpdateConnectInfo(); } private async void UpdateConnectInfo() diff --git a/MediaBrowser.Server.Implementations/HttpServer/Security/AuthService.cs b/MediaBrowser.Server.Implementations/HttpServer/Security/AuthService.cs index 855b26034..1294368f1 100644 --- a/MediaBrowser.Server.Implementations/HttpServer/Security/AuthService.cs +++ b/MediaBrowser.Server.Implementations/HttpServer/Security/AuthService.cs @@ -59,7 +59,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.Security var auth = AuthorizationContext.GetAuthorizationInfo(req); if (!string.IsNullOrWhiteSpace(auth.Token) - || _config.Configuration.SecureApps.Contains(auth.Client ?? string.Empty, StringComparer.OrdinalIgnoreCase)) + || _config.Configuration.SecureApps1.Contains(auth.Client ?? string.Empty, StringComparer.OrdinalIgnoreCase)) { if (!allowLocal || !req.IsLocal) { diff --git a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs index a3e86c667..076da4352 100644 --- a/MediaBrowser.Server.Implementations/Library/LibraryManager.cs +++ b/MediaBrowser.Server.Implementations/Library/LibraryManager.cs @@ -861,13 +861,7 @@ namespace MediaBrowser.Server.Implementations.Library if (!fileInfo.Exists) { - Directory.CreateDirectory(path); - fileInfo = new DirectoryInfo(path); - - if (!fileInfo.Exists) - { - throw new IOException("Path not created: " + path); - } + fileInfo = Directory.CreateDirectory(path); isNew = true; } @@ -1470,20 +1464,6 @@ namespace MediaBrowser.Server.Implementations.Library return collectionTypes.Count == 1 ? collectionTypes[0] : null; } - - public IEnumerable GetAllArtists() - { - return GetAllArtists(RootFolder.RecursiveChildren); - } - - public IEnumerable GetAllArtists(IEnumerable items) - { - return items - .OfType