From e6527de786688ca446e20f1de88e7e1c1c7849bf Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 25 Feb 2015 19:56:56 -0500 Subject: [PATCH] Trim strings retrieved from the applist XML --- .../src/com/limelight/nvstream/http/NvHTTP.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java b/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java index 4e91189b..63d99063 100644 --- a/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java +++ b/moonlight-common/src/com/limelight/nvstream/http/NvHTTP.java @@ -176,7 +176,7 @@ public class NvHTTP { details.name = getXmlString(serverInfo, "hostname").trim(); details.uuid = UUID.fromString(getXmlString(serverInfo, "uniqueid").trim()); - details.macAddress = getXmlString(serverInfo, "mac"); + details.macAddress = getXmlString(serverInfo, "mac").trim(); // If there's no LocalIP field, use the address we hit the server on String localIpStr = getXmlString(serverInfo, "LocalIP"); @@ -346,11 +346,11 @@ public class NvHTTP { case (XmlPullParser.TEXT): NvApp app = appList.getLast(); if (currentTag.peek().equals("AppTitle")) { - app.setAppName(xpp.getText()); + app.setAppName(xpp.getText().trim()); } else if (currentTag.peek().equals("ID")) { - app.setAppId(xpp.getText()); + app.setAppId(xpp.getText().trim()); } else if (currentTag.peek().equals("IsRunning")) { - app.setIsRunning(xpp.getText()); + app.setIsRunning(xpp.getText().trim()); } break; }