From 8f61b1c5602b7ea85549ae1c5ae2a1720457dd96 Mon Sep 17 00:00:00 2001 From: thlo Date: Mon, 1 Feb 2016 19:34:11 +0100 Subject: Adding Server name into rss response. --- responsememblk.c | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/responsememblk.c b/responsememblk.c index 20bae59..3f7a182 100755 --- a/responsememblk.c +++ b/responsememblk.c @@ -1954,10 +1954,18 @@ int cResponseMemBlk::sendMediaXml (struct stat *statbuf) { return OKAY; } + char f[400]; string hdr = ""; + gethostname(f, sizeof(f)); hdr += "\n"; hdr += "\n"; hdr+= "\n"; + hdr+= "VDR Media List "; + hdr += f; + hdr += "\n"; + hdr+= ""; + hdr+= f; + hdr+= "\n"; *mResponseMessage += hdr; @@ -2256,10 +2264,17 @@ int cResponseMemBlk::sendChannelsXml (struct stat *statbuf) { string hdr = ""; + gethostname(f, sizeof(f)); hdr += "\n"; hdr += "\n"; hdr+= "\n"; - hdr+= "VDR Channels List\n"; + hdr+= "VDR Channels List "; + hdr += f; + hdr += "\n"; + + hdr+= ""; + hdr+= f; + hdr+= "\n"; *mResponseMessage += hdr; @@ -2855,10 +2870,16 @@ int cResponseMemBlk::sendRecordingsXml(struct stat *statbuf) { #endif string hdr = ""; + gethostname(f, sizeof(f)); hdr += "\n"; hdr += "\n"; hdr+= "\n"; - hdr+= "VDR Recordings List\n"; + hdr+= "VDR Recordings List "; + hdr += f; + hdr += "\n"; + hdr+= ""; + hdr+= f; + hdr+= "\n"; *mResponseMessage += hdr; -- cgit v1.2.3