diff options
author | thlo <smarttv640@gmail.com> | 2016-02-01 19:34:11 +0100 |
---|---|---|
committer | thlo <smarttv640@gmail.com> | 2016-02-01 19:34:11 +0100 |
commit | 8f61b1c5602b7ea85549ae1c5ae2a1720457dd96 (patch) | |
tree | 6f5bfa166ae511a0d297851b15194676c2d61d89 | |
parent | 4b3f684999d715d636a3d3a385fc06487c93149e (diff) | |
download | vdr-plugin-smarttvweb-8f61b1c5602b7ea85549ae1c5ae2a1720457dd96.tar.gz vdr-plugin-smarttvweb-8f61b1c5602b7ea85549ae1c5ae2a1720457dd96.tar.bz2 |
Adding Server name into rss response.
-rwxr-xr-x | responsememblk.c | 25 |
1 files 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 += "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; hdr += "<rss version=\"2.0\">\n"; hdr+= "<channel>\n"; + hdr+= "<title>VDR Media List "; + hdr += f; + hdr += "</title>\n"; + hdr+= "<description>"; + hdr+= f; + hdr+= "</description>\n"; *mResponseMessage += hdr; @@ -2256,10 +2264,17 @@ int cResponseMemBlk::sendChannelsXml (struct stat *statbuf) { string hdr = ""; + gethostname(f, sizeof(f)); hdr += "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; hdr += "<rss version=\"2.0\">\n"; hdr+= "<channel>\n"; - hdr+= "<title>VDR Channels List</title>\n"; + hdr+= "<title>VDR Channels List "; + hdr += f; + hdr += "</title>\n"; + + hdr+= "<description>"; + hdr+= f; + hdr+= "</description>\n"; *mResponseMessage += hdr; @@ -2855,10 +2870,16 @@ int cResponseMemBlk::sendRecordingsXml(struct stat *statbuf) { #endif string hdr = ""; + gethostname(f, sizeof(f)); hdr += "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; hdr += "<rss version=\"2.0\">\n"; hdr+= "<channel>\n"; - hdr+= "<title>VDR Recordings List</title>\n"; + hdr+= "<title>VDR Recordings List "; + hdr += f; + hdr += "</title>\n"; + hdr+= "<description>"; + hdr+= f; + hdr+= "</description>\n"; *mResponseMessage += hdr; |