From ec131ba0dc25b29ca522cf4555bfad29ad501406 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 26 Feb 2014 16:31:47 -0500 Subject: [PATCH] added first play to classes --- .../HttpClientManager/HttpClientManager.cs | 5 +- .../IO/CommonFileSystem.cs | 4 +- MediaBrowser.Dlna/MediaBrowser.Dlna.csproj | 29 + MediaBrowser.Dlna/PlayTo/Argument.cs | 29 + .../PlayTo/CurrentIdEventArgs.cs | 21 + MediaBrowser.Dlna/PlayTo/Device.cs | 682 ++++++++++++++++++ MediaBrowser.Dlna/PlayTo/DeviceProperties.cs | 176 +++++ MediaBrowser.Dlna/PlayTo/Extensions.cs | 51 ++ MediaBrowser.Dlna/PlayTo/PlaylistItem.cs | 95 +++ MediaBrowser.Dlna/PlayTo/ServiceAction.cs | 34 + MediaBrowser.Dlna/PlayTo/SsdpHelper.cs | 56 ++ MediaBrowser.Dlna/PlayTo/SsdpHttpClient.cs | 127 ++++ MediaBrowser.Dlna/PlayTo/StateVariable.cs | 52 ++ MediaBrowser.Dlna/PlayTo/TransportCommands.cs | 157 ++++ .../PlayTo/TransportStateEventArgs.cs | 9 + MediaBrowser.Dlna/PlayTo/uBaseObject.cs | 66 ++ MediaBrowser.Dlna/PlayTo/uContainer.cs | 24 + MediaBrowser.Dlna/PlayTo/uIcon.cs | 48 ++ MediaBrowser.Dlna/PlayTo/uParser.cs | 54 ++ MediaBrowser.Dlna/PlayTo/uPnpNamespaces.cs | 39 + MediaBrowser.Dlna/PlayTo/uService.cs | 42 ++ MediaBrowser.Dlna/Properties/AssemblyInfo.cs | 1 - 22 files changed, 1797 insertions(+), 4 deletions(-) create mode 100644 MediaBrowser.Dlna/PlayTo/Argument.cs create mode 100644 MediaBrowser.Dlna/PlayTo/CurrentIdEventArgs.cs create mode 100644 MediaBrowser.Dlna/PlayTo/Device.cs create mode 100644 MediaBrowser.Dlna/PlayTo/DeviceProperties.cs create mode 100644 MediaBrowser.Dlna/PlayTo/Extensions.cs create mode 100644 MediaBrowser.Dlna/PlayTo/PlaylistItem.cs create mode 100644 MediaBrowser.Dlna/PlayTo/ServiceAction.cs create mode 100644 MediaBrowser.Dlna/PlayTo/SsdpHelper.cs create mode 100644 MediaBrowser.Dlna/PlayTo/SsdpHttpClient.cs create mode 100644 MediaBrowser.Dlna/PlayTo/StateVariable.cs create mode 100644 MediaBrowser.Dlna/PlayTo/TransportCommands.cs create mode 100644 MediaBrowser.Dlna/PlayTo/TransportStateEventArgs.cs create mode 100644 MediaBrowser.Dlna/PlayTo/uBaseObject.cs create mode 100644 MediaBrowser.Dlna/PlayTo/uContainer.cs create mode 100644 MediaBrowser.Dlna/PlayTo/uIcon.cs create mode 100644 MediaBrowser.Dlna/PlayTo/uParser.cs create mode 100644 MediaBrowser.Dlna/PlayTo/uPnpNamespaces.cs create mode 100644 MediaBrowser.Dlna/PlayTo/uService.cs diff --git a/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs b/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs index 8e5cab43c1..3dcf044f7b 100644 --- a/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs +++ b/MediaBrowser.Common.Implementations/HttpClientManager/HttpClientManager.cs @@ -1,4 +1,5 @@ -using MediaBrowser.Common.Configuration; +using System.Collections.Specialized; +using MediaBrowser.Common.Configuration; using MediaBrowser.Common.IO; using MediaBrowser.Common.Net; using MediaBrowser.Model.Logging; @@ -367,7 +368,7 @@ namespace MediaBrowser.Common.Implementations.HttpClientManager ContentType = httpResponse.ContentType, - Headers = httpResponse.Headers, + Headers = new NameValueCollection(httpResponse.Headers), ContentLength = contentLength }; diff --git a/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs b/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs index 98e81981d1..24ac48e835 100644 --- a/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs +++ b/MediaBrowser.Common.Implementations/IO/CommonFileSystem.cs @@ -55,7 +55,9 @@ namespace MediaBrowser.Common.Implementations.IO if (string.Equals(Path.GetExtension(filename), ".mblink", StringComparison.OrdinalIgnoreCase)) { - return File.ReadAllText(filename); + var path = File.ReadAllText(filename); + + return NormalizePath(path); } return null; diff --git a/MediaBrowser.Dlna/MediaBrowser.Dlna.csproj b/MediaBrowser.Dlna/MediaBrowser.Dlna.csproj index 6f6fc3caac..937c9b4c91 100644 --- a/MediaBrowser.Dlna/MediaBrowser.Dlna.csproj +++ b/MediaBrowser.Dlna/MediaBrowser.Dlna.csproj @@ -51,8 +51,37 @@ Properties\SharedVersion.cs + + + + + + Code + + + + + + + + + + + + + + + + {9142eefa-7570-41e1-bfcc-468bb571af2f} + MediaBrowser.Common + + + {7eeeb4bb-f3e8-48fc-b4c5-70f0fff8329b} + MediaBrowser.Model + +