diff options
author | methodus <methodus@web.de> | 2012-10-12 20:46:25 +0200 |
---|---|---|
committer | methodus <methodus@web.de> | 2012-10-12 20:46:25 +0200 |
commit | b450015b9a6c0d35c264e93fbc9bcdf92538f47a (patch) | |
tree | 8959f8d24f8a14285e8623af078beacd860d4c58 /plugins/provider | |
parent | 9b199c2d95141de43fac33412ec3e9fc1f543e71 (diff) | |
download | vdr-plugin-upnp-b450015b9a6c0d35c264e93fbc9bcdf92538f47a.tar.gz vdr-plugin-upnp-b450015b9a6c0d35c264e93fbc9bcdf92538f47a.tar.bz2 |
Fixed some minor issues. Added current event from schedule to channel details.
Diffstat (limited to 'plugins/provider')
-rw-r--r-- | plugins/provider/vdrProvider/vdrProvider.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/plugins/provider/vdrProvider/vdrProvider.cpp b/plugins/provider/vdrProvider/vdrProvider.cpp index b98568f..4e765bf 100644 --- a/plugins/provider/vdrProvider/vdrProvider.cpp +++ b/plugins/provider/vdrProvider/vdrProvider.cpp @@ -9,12 +9,10 @@ #include <vdr/epg.h> #include <vdr/channels.h> #include <vdr/tools.h> -#include <vdr/config.h> #include <string> #include <sstream> +#include <algorithm> #include <tools.h> -#include <vdr/thread.h> -#include <iostream> #include <pwd.h> #include <unistd.h> @@ -108,18 +106,22 @@ public: return true; } - virtual string GetHTTPUri(const string& uri, const string& currentIP){ + virtual string GetHTTPUri(const string& uri, const string& currentIP, const string& pInfo){ if(!IsRootContainer(uri)) return string(); int port = 3000; stringstream ss; + string protocolInfo = pInfo.substr(pInfo.find_last_of(':')); + + std::replace(protocolInfo.begin(), protocolInfo.end(), ';','+'); + ss << "http://" << currentIP << ":" << port << "/" << "EXT;" << "PROG=cat;" - << "DLNA_contentFeatures=DLNA.ORG_PN=MPEG_TS_SD_EU_ISO+DLNA.ORG_OP=00+DLNA.ORG_CI=0+DLNA.ORG_FLAGS=ED100000000000000000000000000000" + << "DLNA_contentFeatures=" << protocolInfo << "/" << uri.substr(6); |