2
0
Luke Pulverenti 8 жил өмнө
parent
commit
c2c1451beb

+ 2 - 1
Emby.Dlna/DlnaManager.cs

@@ -587,7 +587,8 @@ namespace Emby.Dlna
                 new DirectTvProfile(),
                 new DishHopperJoeyProfile(),
                 new DefaultProfile(),
-                new PopcornHourProfile()
+                new PopcornHourProfile(),
+                new MarantzProfile()
             };
 
             foreach (var item in list)

+ 4 - 0
Emby.Dlna/Emby.Dlna.csproj

@@ -86,6 +86,7 @@
     <Compile Include="Profiles\Foobar2000Profile.cs" />
     <Compile Include="Profiles\LgTvProfile.cs" />
     <Compile Include="Profiles\LinksysDMA2100Profile.cs" />
+    <Compile Include="Profiles\MarantzProfile.cs" />
     <Compile Include="Profiles\MediaMonkeyProfile.cs" />
     <Compile Include="Profiles\PanasonicVieraProfile.cs" />
     <Compile Include="Profiles\PopcornHourProfile.cs" />
@@ -177,6 +178,9 @@
     <EmbeddedResource Include="Profiles\Xml\Xbox 360.xml" />
     <EmbeddedResource Include="Profiles\Xml\Xbox One.xml" />
   </ItemGroup>
+  <ItemGroup>
+    <EmbeddedResource Include="Profiles\Xml\Marantz.xml" />
+  </ItemGroup>
   <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
        Other similar extension points exist, see Microsoft.Common.targets.

+ 2 - 0
Emby.Dlna/Profiles/DenonAvrProfile.cs

@@ -10,6 +10,8 @@ namespace Emby.Dlna.Profiles
         {
             Name = "Denon AVR";
 
+            SupportedMediaTypes = "Audio";
+
             Identification = new DeviceIdentification
             {
                 FriendlyName = @"Denon:\[AVR:.*",

+ 42 - 0
Emby.Dlna/Profiles/MarantzProfile.cs

@@ -0,0 +1,42 @@
+using System.Xml.Serialization;
+using MediaBrowser.Model.Dlna;
+
+namespace Emby.Dlna.Profiles
+{
+    [XmlRoot("Profile")]
+    public class MarantzProfile : DefaultProfile
+    {
+        public MarantzProfile()
+        {
+            Name = "Marantz";
+
+            SupportedMediaTypes = "Audio";
+
+            Identification = new DeviceIdentification
+            {
+                Manufacturer = @"Marantz",
+
+                Headers = new[]
+               {
+                   new HttpHeaderInfo
+                   {
+                       Name = "User-Agent",
+                       Value = "Marantz",
+                       Match = HeaderMatchType.Substring
+                   }
+               }
+            };
+
+            DirectPlayProfiles = new[]
+            {
+                new DirectPlayProfile
+                {
+                    Container = "aac,mp3,mpa,wav,wma,mp2,ogg,oga",
+                    Type = DlnaProfileType.Audio
+                },
+            };
+
+            ResponseProfiles = new ResponseProfile[] { };
+        }
+    }
+}

+ 1 - 1
Emby.Dlna/Profiles/MediaMonkeyProfile.cs

@@ -16,7 +16,7 @@ namespace Emby.Dlna.Profiles
             {
                FriendlyName = @"MediaMonkey",
 
-                Headers = new[]
+               Headers = new[]
                {
                    new HttpHeaderInfo
                    {

+ 1 - 1
Emby.Dlna/Profiles/Xml/Denon AVR.xml

@@ -15,7 +15,7 @@
   <EnableAlbumArtInDidl>false</EnableAlbumArtInDidl>
   <EnableSingleAlbumArtLimit>false</EnableSingleAlbumArtLimit>
   <EnableSingleSubtitleLimit>false</EnableSingleSubtitleLimit>
-  <SupportedMediaTypes>Audio,Photo,Video</SupportedMediaTypes>
+  <SupportedMediaTypes>Audio</SupportedMediaTypes>
   <AlbumArtPn>JPEG_SM</AlbumArtPn>
   <MaxAlbumArtWidth>480</MaxAlbumArtWidth>
   <MaxAlbumArtHeight>480</MaxAlbumArtHeight>

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 29 - 0
Emby.Dlna/Profiles/Xml/Marantz.xml


Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно