diff options
author | Jens Georg <mail@jensge.org> | 2012-06-28 09:13:16 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2012-07-20 19:29:16 +0200 |
commit | 2deeb655f0daf504bb8531478ba5cafb3e08d901 (patch) | |
tree | 78469b429cd43286ff3e07833b1ad0fc38bf597d | |
parent | 7cc785a6a907d5ffe8466ad6483fa015a35e4a00 (diff) | |
download | rygel-2deeb655f0daf504bb8531478ba5cafb3e08d901.tar.gz |
core, data: Fix Samsung user agent for downgrade
- There was a typo: HHP vs HPP
- [TV] is part of the changeable name
- Apparently there are two versions: SEC HHP and SEC_HHP
So this patch just unifies the two Samsung User-Agents and forces
downgrades for every Samsung device.
-rw-r--r-- | data/rygel.conf | 2 | ||||
-rw-r--r-- | src/rygel/rygel-v1-hacks.vala | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/data/rygel.conf b/data/rygel.conf index 0f29325b..b0b61f80 100644 --- a/data/rygel.conf +++ b/data/rygel.conf @@ -75,7 +75,7 @@ allow-deletion=true # working with Rygel, please file a bug at # https://bugzilla.gnome.org/enter_bug.cgi?product=Rygel&component=IOP # so we can include it in future releases. -#force-downgrade-for=Allegro-Software-WebClient;SEC_HHP_Galaxy S/1.0;Mediabolic-IMHTTP/1;SEC_HPP[TV] +#force-downgrade-for=Allegro-Software-WebClient;SEC_HHP;SEC HHP;Mediabolic-IMHTTP/1 # Plugin specific sections # diff --git a/src/rygel/rygel-v1-hacks.vala b/src/rygel/rygel-v1-hacks.vala index 9568dfba..3e1a6bcd 100644 --- a/src/rygel/rygel-v1-hacks.vala +++ b/src/rygel/rygel-v1-hacks.vala @@ -30,9 +30,8 @@ using GUPnP; */ internal class Rygel.V1Hacks : ClientHacks { private const string DEFAULT_AGENT = ".*Allegro-Software-WebClient.*|" + - ".*SEC_HHP_Galaxy S/1\\.0.*|" + - ".*Mediabolic-IMHTTP/1.*|" + - ".*SEC_HPP\\[TV\\].*"; + ".*SEC[_ ]HHP.*|" + + ".*Mediabolic-IMHTTP/1.*"; private const string DMS = "urn:schemas-upnp-org:device:MediaServer"; private const string DMS_V1 = DMS + ":1"; private const string MATCHING_PATTERN = ".*%s.*"; |