浏览代码

Merge pull request #1467 from MediaBrowser/dev

merge from dev
Luke 9 年之前
父节点
当前提交
8a2eeba914

+ 0 - 3
MediaBrowser.Model/Configuration/UserConfiguration.cs

@@ -42,8 +42,6 @@ namespace MediaBrowser.Model.Configuration
 
         public bool IncludeTrailersInSuggestions { get; set; }
 
-        public bool EnableCinemaMode { get; set; }
-
         public string[] LatestItemsExcludes { get; set; }
         public string[] PlainFolderViews { get; set; }
 
@@ -64,7 +62,6 @@ namespace MediaBrowser.Model.Configuration
             PlainFolderViews = new string[] { };
 
             IncludeTrailersInSuggestions = true;
-            EnableCinemaMode = true;
 
             GroupedFolders = new string[] { };
         }

+ 28 - 36
MediaBrowser.Server.Implementations/LiveTv/TunerHosts/SatIp/SatIpDiscovery.cs

@@ -41,29 +41,21 @@ namespace MediaBrowser.Server.Implementations.LiveTv.TunerHosts.SatIp
 
         void _deviceDiscovery_DeviceDiscovered(object sender, SsdpMessageEventArgs e)
         {
-            //string server = null;
-            //if (e.Headers.TryGetValue("SERVER", out server) && server.IndexOf("HDHomeRun", StringComparison.OrdinalIgnoreCase) != -1)
-            //{
-            //    string location;
-            //    if (e.Headers.TryGetValue("Location", out location))
-            //    {
-            //        //_logger.Debug("HdHomerun found at {0}", location);
-
-            //        // Just get the beginning of the url
-            //        Uri uri;
-            //        if (Uri.TryCreate(location, UriKind.Absolute, out uri))
-            //        {
-            //            var apiUrl = location.Replace(uri.LocalPath, String.Empty, StringComparison.OrdinalIgnoreCase)
-            //                    .TrimEnd('/');
-
-            //            //_logger.Debug("HdHomerun api url: {0}", apiUrl);
-            //            AddDevice(apiUrl);
-            //        }
-            //    }
-            //}
+            string st = null;
+            if (e.Headers.TryGetValue("ST", out st) && string.Equals(st, "urn:ses-com:device:SatIPServer:1", StringComparison.OrdinalIgnoreCase))
+            {
+                string location;
+                if (e.Headers.TryGetValue("Location", out location) && !string.IsNullOrWhiteSpace(location))
+                {
+                    _logger.Debug("SAT IP found at {0}", location);
+
+                    // Just get the beginning of the url
+                    AddDevice(location);
+                }
+            }
         }
 
-        private async void AddDevice(string url)
+        private async void AddDevice(string location)
         {
             await _semaphore.WaitAsync().ConfigureAwait(false);
 
@@ -71,24 +63,24 @@ namespace MediaBrowser.Server.Implementations.LiveTv.TunerHosts.SatIp
             {
                 var options = GetConfiguration();
 
-                if (options.TunerHosts.Any(i =>
-                            string.Equals(i.Type, SatIpHost.DeviceType, StringComparison.OrdinalIgnoreCase) &&
-                            UriEquals(i.Url, url)))
-                {
-                    return;
-                }
+                //if (options.TunerHosts.Any(i =>
+                //            string.Equals(i.Type, SatIpHost.DeviceType, StringComparison.OrdinalIgnoreCase) &&
+                //            UriEquals(i.Url, url)))
+                //{
+                //    return;
+                //}
 
-                // Strip off the port
-                url = new Uri(url).GetComponents(UriComponents.AbsoluteUri & ~UriComponents.Port, UriFormat.UriEscaped).TrimEnd('/');
+                //// Strip off the port
+                //url = new Uri(url).GetComponents(UriComponents.AbsoluteUri & ~UriComponents.Port, UriFormat.UriEscaped).TrimEnd('/');
 
-                await TestUrl(url).ConfigureAwait(false);
-                
-                await _liveTvManager.SaveTunerHost(new TunerHostInfo
-                {
-                    Type = SatIpHost.DeviceType,
-                    Url = url
+                //await TestUrl(url).ConfigureAwait(false);
+
+                //await _liveTvManager.SaveTunerHost(new TunerHostInfo
+                //{
+                //    Type = SatIpHost.DeviceType,
+                //    Url = url
 
-                }).ConfigureAwait(false);
+                //}).ConfigureAwait(false);
             }
             catch (Exception ex)
             {

+ 3 - 3
MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegDownloadInfo.cs

@@ -33,7 +33,7 @@ namespace MediaBrowser.Server.Startup.Common.FFMpeg
                 case OperatingSystem.Linux:
 
                     info.ArchiveType = "7z";
-                    info.Version = "20150917";
+                    info.Version = "20160215";
                     break;
                 case OperatingSystem.Osx:
 
@@ -119,12 +119,12 @@ namespace MediaBrowser.Server.Startup.Common.FFMpeg
                         case Architecture.X86_X64:
                             return new[]
                             {
-                                "https://github.com/MediaBrowser/Emby.Resources/raw/master/ffmpeg/linux/ffmpeg-2.8.0-64bit-static.7z"
+                                "https://github.com/MediaBrowser/Emby.Resources/raw/master/ffmpeg/linux/ffmpeg-git-20160215-64bit-static.7z"
                             };
                         case Architecture.X86:
                             return new[]
                             {
-                                "https://github.com/MediaBrowser/Emby.Resources/raw/master/ffmpeg/linux/ffmpeg-2.8.0-32bit-static.7z"
+                                "https://github.com/MediaBrowser/Emby.Resources/raw/master/ffmpeg/linux/ffmpeg-git-20160215-32bit-static.7z"
                             };
                         case Architecture.Arm:
                             return new[]

+ 3 - 3
MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj

@@ -113,6 +113,9 @@
     <Content Include="dashboard-ui\components\filterdialog\filterdialog.template.html">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
+    <Content Include="dashboard-ui\components\filterdialog\style.css">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
     <Content Include="dashboard-ui\components\guestinviter\guestinviter.js">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
@@ -511,9 +514,6 @@
     <Content Include="dashboard-ui\scripts\photos.js">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
-    <Content Include="dashboard-ui\scripts\queryfilters.js">
-      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
-    </Content>
     <Content Include="dashboard-ui\scripts\registrationservices.js">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>