[magentatv] Fix port on MR400 discovery (reports 49153, has to be 49152) (#9421)

Signed-off-by: Markus Michels <markus7017@gmail.com>
This commit is contained in:
Markus Michels 2020-12-18 21:32:09 +01:00 committed by GitHub
parent 3b9c3cde8f
commit d24decb487
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -74,6 +74,9 @@ public class MagentaTVDiscoveryParticipant implements UpnpDiscoveryParticipant {
.substring(device.getIdentity().getUdn().getIdentifierString().length() - 12);
String mac = hex.substring(0, 2) + ":" + hex.substring(2, 4) + ":" + hex.substring(4, 6) + ":"
+ hex.substring(6, 8) + ":" + hex.substring(8, 10) + ":" + hex.substring(10, 12);
if (port.equals("49153")) { // MR400 reports the rong
port = MR400_DEF_REMOTE_PORT;
}
properties.put(PROPERTY_VENDOR, VENDOR + "(" + manufacturer + ")");
properties.put(PROPERTY_MODEL_ID, modelName);
properties.put(PROPERTY_HARDWARE_VERSION, device.getDetails().getModelDetails().getModelNumber());