From 3be4aa8dc729f5899658790f43a1d1c182e7a243 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 19 Oct 2014 23:04:45 -0400 Subject: [PATCH] add connect to startup wizard --- MediaBrowser.Api/ApiEntryPoint.cs | 15 +- MediaBrowser.Api/MediaBrowser.Api.csproj | 7 - .../Playback/BaseStreamingService.cs | 79 +- .../Playback/Hls/DynamicHlsService.cs | 4 +- MediaBrowser.Api/Playback/StreamState.cs | 44 + MediaBrowser.Api/UserService.cs | 9 + ...MediaBrowser.Common.Implementations.csproj | 7 - MediaBrowser.Controller/Entities/BaseItem.cs | 6 + .../Entities/IHasImages.cs | 6 + .../Entities/PhotoAlbum.cs | 10 + .../MediaBrowser.Controller.csproj | 7 - MediaBrowser.Controller/Playlists/Playlist.cs | 10 + .../Providers/IProviderManager.cs | 13 + .../Images/CollectionFolderImageProvider.cs | 2 +- .../Images/ImagesByNameImageProvider.cs | 2 +- .../InternalMetadataFolderImageProvider.cs | 9 +- .../Images/LocalImageProvider.cs | 34 +- .../MediaBrowser.MediaEncoding.csproj | 7 - .../MediaBrowser.Model.Portable.csproj | 7 - .../ApiClient/ConnectionResult.cs | 4 +- .../ApiClient/IConnectionManager.cs | 27 +- .../Configuration/ServerConfiguration.cs | 97 ++ MediaBrowser.Model/Dlna/StreamBuilder.cs | 2 +- MediaBrowser.Model/MediaBrowser.Model.csproj | 7 - .../FolderImages/DefaultImageProvider.cs | 9 +- MediaBrowser.Providers/Manager/ImageSaver.cs | 32 +- .../Manager/ProviderManager.cs | 5 + .../MediaBrowser.Providers.csproj | 8 +- .../Photos/PhotoAlbumMetadataService.cs | 33 + .../Connect/ConnectManager.cs | 4 +- .../Library/UserManager.cs | 7 +- .../LiveTv/LiveTvManager.cs | 2 +- .../Localization/JavaScript/it.json | 16 +- .../Localization/JavaScript/kk.json | 2 +- .../Localization/JavaScript/pt_BR.json | 16 +- .../Localization/JavaScript/zh_CN.json | 606 ++++++++ .../Localization/LocalizationManager.cs | 1 + .../Localization/Server/it.json | 12 +- .../Localization/Server/kk.json | 12 +- .../Localization/Server/pt_BR.json | 14 +- .../Localization/Server/server.json | 5 +- .../Localization/Server/zh_CN.json | 1229 +++++++++++++++++ ...MediaBrowser.Server.Implementations.csproj | 12 +- .../PhotoAlbumImageProvider.cs} | 181 ++- .../Playlists/PlaylistImageProvider.cs | 345 +++++ .../MediaBrowser.Server.Mono.csproj | 7 - .../MediaBrowser.ServerApplication.csproj | 7 - .../MediaBrowser.WebDashboard.csproj | 7 - Nuget/MediaBrowser.Common.Internal.nuspec | 4 +- Nuget/MediaBrowser.Common.nuspec | 2 +- Nuget/MediaBrowser.Model.Signed.nuspec | 2 +- Nuget/MediaBrowser.Server.Core.nuspec | 4 +- 52 files changed, 2708 insertions(+), 291 deletions(-) create mode 100644 MediaBrowser.Providers/Photos/PhotoAlbumMetadataService.cs create mode 100644 MediaBrowser.Server.Implementations/Localization/JavaScript/zh_CN.json create mode 100644 MediaBrowser.Server.Implementations/Localization/Server/zh_CN.json rename MediaBrowser.Server.Implementations/{Playlists/PlaylistImageEnhancer.cs => Photos/PhotoAlbumImageProvider.cs} (69%) create mode 100644 MediaBrowser.Server.Implementations/Playlists/PlaylistImageProvider.cs diff --git a/MediaBrowser.Api/ApiEntryPoint.cs b/MediaBrowser.Api/ApiEntryPoint.cs index 7c655ef88e..d386373d4b 100644 --- a/MediaBrowser.Api/ApiEntryPoint.cs +++ b/MediaBrowser.Api/ApiEntryPoint.cs @@ -172,19 +172,8 @@ namespace MediaBrowser.Api if (!string.IsNullOrWhiteSpace(deviceId)) { - var audioCodec = state.Request.AudioCodec; - var videoCodec = state.VideoRequest == null ? null : state.VideoRequest.VideoCodec; - - if (string.Equals(state.OutputAudioCodec, "copy", StringComparison.OrdinalIgnoreCase) || - string.IsNullOrEmpty(audioCodec)) - { - audioCodec = state.OutputAudioCodec; - } - if (string.Equals(state.OutputVideoCodec, "copy", StringComparison.OrdinalIgnoreCase) || - string.IsNullOrEmpty(videoCodec)) - { - videoCodec = state.OutputVideoCodec; - } + var audioCodec = state.ActualOutputVideoCodec; + var videoCodec = state.ActualOutputVideoCodec; _sessionManager.ReportTranscodingInfo(deviceId, new TranscodingInfo { diff --git a/MediaBrowser.Api/MediaBrowser.Api.csproj b/MediaBrowser.Api/MediaBrowser.Api.csproj index 5d8a24f9ab..b233629e1f 100644 --- a/MediaBrowser.Api/MediaBrowser.Api.csproj +++ b/MediaBrowser.Api/MediaBrowser.Api.csproj @@ -172,13 +172,6 @@ - - - - This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - -