Permalink
Browse files

Making PMS.xml XML compliant.

  • Loading branch information...
1 parent 8206448 commit 6da3eb35abc4a9f8e9b8570aa5a7ba7cbc2964c3 @Raptor399 Raptor399 committed May 2, 2012
@@ -341,8 +341,8 @@ public void answer(OutputStream output, StartStopListenerDelegate startStopListe
inputStream.read(b);
String s = new String(b);
s = s.replace("uuid:1234567890TOTO", PMS.get().usn());//.substring(0, PMS.get().usn().length()-2));
- s = s.replace("<host>", PMS.get().getServer().getHost());
- s = s.replace("<port>", "" + PMS.get().getServer().getPort());
+ s = s.replace("[host]", PMS.get().getServer().getHost());
+ s = s.replace("[port]", "" + PMS.get().getServer().getPort());
if (xbox) {
logger.debug("DLNA changes for Xbox360");
s = s.replace("PS3 Media Server", "PS3 Media Server [" + profileName + "] : Windows Media Connect");
@@ -446,8 +446,8 @@ public ChannelFuture answer(
s = s.replace("uuid:1234567890TOTO", PMS.get().usn());//.substring(0, PMS.get().usn().length()-2));
String profileName = PMS.getConfiguration().getProfileName();
if (PMS.get().getServer().getHost() != null) {
- s = s.replace("<host>", PMS.get().getServer().getHost());
- s = s.replace("<port>", "" + PMS.get().getServer().getPort());
+ s = s.replace("[host]", PMS.get().getServer().getHost());
+ s = s.replace("[port]", "" + PMS.get().getServer().getPort());
}
if (xbox) {
logger.debug("DLNA changes for Xbox360");
@@ -4,7 +4,7 @@
<major>1</major>
<minor>0</minor>
</specVersion>
- <URLBase>http://<host>:<port>/</URLBase>
+ <URLBase>http://[host]:[port]/</URLBase>
<device>
<dlna:X_DLNADOC xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMS-1.50</dlna:X_DLNADOC>
<dlna:X_DLNADOC xmlns:dlna="urn:schemas-dlna-org:device-1-0">M-DMS-1.50</dlna:X_DLNADOC>
@@ -28,7 +28,7 @@
<url>/images/icon-256.png</url>
</icon>
</iconList>
- <presentationURL>http://<host>:<port>/console/index.html</presentationURL>
+ <presentationURL>http://[host]:[port]/console/index.html</presentationURL>
<serviceList>
<service>
<serviceType>urn:schemas-upnp-org:service:ContentDirectory:1</serviceType>

0 comments on commit 6da3eb3

Please sign in to comment.