The Free Software Media System - Server Backend & API
xbox one dlna server fix
Luke Pulverenti06b1896d8bad
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.csindex 29f13fad50..e01b8857f6 100644--- a/MediaBrowser.Controller/Entities/BaseItem.cs+++ b/MediaBrowser.Controller/Entities/BaseItem.cs@@ -1700,7 +1700,8 @@ namespace MediaBrowser.Controller.EntitiesName = Name,ProviderIds = ProviderIds,IndexNumber = IndexNumber,- ParentIndexNumber = ParentIndexNumber+ ParentIndexNumber = ParentIndexNumber,+ Year = ProductionYear};}diff --git a/MediaBrowser.Dlna/Profiles/SamsungSmartTvProfile.cs b/MediaBrowser.Dlna/Profiles/SamsungSmartTvProfile.csindex 542ec2e3f0..1499d0e745 100644--- a/MediaBrowser.Dlna/Profiles/SamsungSmartTvProfile.cs+++ b/MediaBrowser.Dlna/Profiles/SamsungSmartTvProfile.cs@@ -91,7 +91,7 @@ namespace MediaBrowser.Dlna.Profiles},new DirectPlayProfile{- Container = "3gpp",+ Container = "3gp",VideoCodec = "h264,mpeg4",AudioCodec = "aac,he-aac",Type = DlnaProfileType.Videodiff --git a/MediaBrowser.Dlna/Profiles/XboxOneProfile.cs b/MediaBrowser.Dlna/Profiles/XboxOneProfile.csindex fea65438a8..4399462cf0 100644--- a/MediaBrowser.Dlna/Profiles/XboxOneProfile.cs+++ b/MediaBrowser.Dlna/Profiles/XboxOneProfile.cs@@ -16,7 +16,12 @@ namespace MediaBrowser.Dlna.ProfilesIdentification = new DeviceIdentification{ModelName = "Xbox One",- FriendlyName = "Xbox-SystemOS"+ FriendlyName = "Xbox-SystemOS",++ Headers = new[]+ {+ new HttpHeaderInfo {Name = "User-Agent", Value = "NSPlayer", Match = HeaderMatchType.Substring}+ }};TranscodingProfiles = new[]diff --git a/MediaBrowser.Dlna/Profiles/Xml/Samsung Smart TV.xml b/MediaBrowser.Dlna/Profiles/Xml/Samsung Smart TV.xmlindex c903cdb14f..27d8e00ec8 100644--- a/MediaBrowser.Dlna/Profiles/Xml/Samsung Smart TV.xml+++ b/MediaBrowser.Dlna/Profiles/Xml/Samsung Smart TV.xml@@ -42,7 +42,7 @@<DirectPlayProfile container="avi" audioCodec="mp3,ac3,dca" videoCodec="h264,mpeg4,mjpeg" type="Video" /><DirectPlayProfile container="mkv" audioCodec="mp3,ac3,dca,aac" videoCodec="h264,mpeg4,mjpeg4" type="Video" /><DirectPlayProfile container="mp4" audioCodec="mp3,aac" videoCodec="h264,mpeg4" type="Video" />- <DirectPlayProfile container="3gpp" audioCodec="aac,he-aac" videoCodec="h264,mpeg4" type="Video" />+ <DirectPlayProfile container="3gp" audioCodec="aac,he-aac" videoCodec="h264,mpeg4" type="Video" /><DirectPlayProfile container="mpg,mpeg" audioCodec="ac3,mp2,mp3,aac" videoCodec="mpeg1video,mpeg2video,h264" type="Video" /><DirectPlayProfile container="vro,vob" audioCodec="ac3,mp2,mp3" videoCodec="mpeg1video,mpeg2video" type="Video" /><DirectPlayProfile container="ts" audioCodec="ac3,aac,mp3,eac3" videoCodec="mpeg2video,h264,vc1" type="Video" />diff --git a/MediaBrowser.Dlna/Profiles/Xml/Xbox One.xml b/MediaBrowser.Dlna/Profiles/Xml/Xbox One.xmlindex 7c791f13e8..f666dfd27f 100644--- a/MediaBrowser.Dlna/Profiles/Xml/Xbox One.xml+++ b/MediaBrowser.Dlna/Profiles/Xml/Xbox One.xml@@ -4,7 +4,9 @@<Identification><FriendlyName>Xbox-SystemOS</FriendlyName><ModelName>Xbox One</ModelName>- <Headers />+ <Headers>+ <HttpHeaderInfo name="User-Agent" value="NSPlayer" match="Substring" />+ </Headers></Identification><FriendlyName>Media Browser</FriendlyName><Manufacturer>Media Browser</Manufacturer>