From f41f29a92aca38ea781eb7abd2a3512f7d41b06e Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 27 Aug 2016 14:18:02 -0400 Subject: [PATCH] update sony dlna profiles --- .../Profiles/SonyBlurayPlayer2013.cs | 36 ++++++++++++++++++- .../Profiles/SonyBlurayPlayer2014.cs | 36 ++++++++++++++++++- .../Profiles/SonyBlurayPlayer2015.cs | 24 ++++++++++++- .../Profiles/SonyBlurayPlayer2016.cs | 12 +++++++ .../Profiles/Xml/Sony Blu-ray Player 2013.xml | 8 ++++- .../Profiles/Xml/Sony Blu-ray Player 2014.xml | 8 ++++- .../Profiles/Xml/Sony Blu-ray Player 2015.xml | 6 +++- .../Profiles/Xml/Sony Blu-ray Player 2016.xml | 2 ++ 8 files changed, 126 insertions(+), 6 deletions(-) diff --git a/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2013.cs b/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2013.cs index b3535b0e9..07a030fa2 100644 --- a/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2013.cs +++ b/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2013.cs @@ -12,7 +12,41 @@ namespace MediaBrowser.Dlna.Profiles Identification = new DeviceIdentification { - ModelNumber = "BDP-2013" + ModelNumber = "BDP-2013", + + Headers = new[] + { + new HttpHeaderInfo + { + Name = "X-AV-Physical-Unit-Info", + Value = "BDP-S1100", + Match = HeaderMatchType.Substring + }, + new HttpHeaderInfo + { + Name = "X-AV-Physical-Unit-Info", + Value = "BDP-S3100", + Match = HeaderMatchType.Substring + }, + new HttpHeaderInfo + { + Name = "X-AV-Physical-Unit-Info", + Value = "BDP-S5100", + Match = HeaderMatchType.Substring + }, + new HttpHeaderInfo + { + Name = "X-AV-Physical-Unit-Info", + Value = "BDP-S6100", + Match = HeaderMatchType.Substring + }, + new HttpHeaderInfo + { + Name = "X-AV-Physical-Unit-Info", + Value = "BDP-S7100", + Match = HeaderMatchType.Substring + } + } }; AddXmlRootAttribute("xmlns:av", "urn:schemas-sony-com:av"); diff --git a/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2014.cs b/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2014.cs index 45fa1d0e6..70728f2c8 100644 --- a/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2014.cs +++ b/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2014.cs @@ -12,7 +12,41 @@ namespace MediaBrowser.Dlna.Profiles Identification = new DeviceIdentification { - ModelNumber = "BDP-2014" + ModelNumber = "BDP-2014", + + Headers = new[] + { + new HttpHeaderInfo + { + Name = "X-AV-Physical-Unit-Info", + Value = "BDP-S1200", + Match = HeaderMatchType.Substring + }, + new HttpHeaderInfo + { + Name = "X-AV-Physical-Unit-Info", + Value = "BDP-S3200", + Match = HeaderMatchType.Substring + }, + new HttpHeaderInfo + { + Name = "X-AV-Physical-Unit-Info", + Value = "BDP-S5200", + Match = HeaderMatchType.Substring + }, + new HttpHeaderInfo + { + Name = "X-AV-Physical-Unit-Info", + Value = "BDP-S6200", + Match = HeaderMatchType.Substring + }, + new HttpHeaderInfo + { + Name = "X-AV-Physical-Unit-Info", + Value = "BDP-S7200", + Match = HeaderMatchType.Substring + } + } }; AddXmlRootAttribute("xmlns:av", "urn:schemas-sony-com:av"); diff --git a/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2015.cs b/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2015.cs index 6295cd40f..d95f04bcc 100644 --- a/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2015.cs +++ b/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2015.cs @@ -12,7 +12,29 @@ namespace MediaBrowser.Dlna.Profiles Identification = new DeviceIdentification { - ModelNumber = "BDP-2015" + ModelNumber = "BDP-2015", + + Headers = new[] + { + new HttpHeaderInfo + { + Name = "X-AV-Physical-Unit-Info", + Value = "BDP-S1500", + Match = HeaderMatchType.Substring + }, + new HttpHeaderInfo + { + Name = "X-AV-Physical-Unit-Info", + Value = "BDP-S3500", + Match = HeaderMatchType.Substring + }, + new HttpHeaderInfo + { + Name = "X-AV-Physical-Unit-Info", + Value = "BDP-S6500", + Match = HeaderMatchType.Substring + } + } }; AddXmlRootAttribute("xmlns:av", "urn:schemas-sony-com:av"); diff --git a/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2016.cs b/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2016.cs index 5f1f1cf5f..d2dbbd970 100644 --- a/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2016.cs +++ b/MediaBrowser.Dlna/Profiles/SonyBlurayPlayer2016.cs @@ -16,11 +16,23 @@ namespace MediaBrowser.Dlna.Profiles Headers = new[] { + new HttpHeaderInfo + { + Name = "X-AV-Physical-Unit-Info", + Value = "BDP-S1700", + Match = HeaderMatchType.Substring + }, new HttpHeaderInfo { Name = "X-AV-Physical-Unit-Info", Value = "BDP-S3700", Match = HeaderMatchType.Substring + }, + new HttpHeaderInfo + { + Name = "X-AV-Physical-Unit-Info", + Value = "BDP-S6700", + Match = HeaderMatchType.Substring } } }; diff --git a/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2013.xml b/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2013.xml index 32a79ec55..f1cfe4260 100644 --- a/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2013.xml +++ b/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2013.xml @@ -3,7 +3,13 @@ Sony Blu-ray Player 2013 BDP-2013 - + + + + + + + Microsoft Corporation http://emby.media/ diff --git a/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2014.xml b/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2014.xml index fa9914953..cefb2262e 100644 --- a/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2014.xml +++ b/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2014.xml @@ -3,7 +3,13 @@ Sony Blu-ray Player 2014 BDP-2014 - + + + + + + + Microsoft Corporation http://emby.media/ diff --git a/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2015.xml b/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2015.xml index 5d0904f45..010be98b1 100644 --- a/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2015.xml +++ b/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2015.xml @@ -3,7 +3,11 @@ Sony Blu-ray Player 2015 BDP-2015 - + + + + + Microsoft Corporation http://emby.media/ diff --git a/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2016.xml b/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2016.xml index 910efbd11..3dab41f75 100644 --- a/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2016.xml +++ b/MediaBrowser.Dlna/Profiles/Xml/Sony Blu-ray Player 2016.xml @@ -4,7 +4,9 @@ BDP-2016 + + Microsoft Corporation