summaryrefslogtreecommitdiff
path: root/Plexservice.cpp
diff options
context:
space:
mode:
authorchriszero <zerov83@gmail.com>2015-01-17 22:42:08 +0100
committerchriszero <zerov83@gmail.com>2015-01-17 22:42:08 +0100
commitd3777dd6bcb11ceea85eca91e670d7872ba7b1ea (patch)
tree0f105aa75321c5c83a17c0c9338fb2534f61fc38 /Plexservice.cpp
parentadc0c699c19b0389b899230a73f3ab635bcdc5c3 (diff)
downloadvdr-plugin-plex-d3777dd6bcb11ceea85eca91e670d7872ba7b1ea.tar.gz
vdr-plugin-plex-d3777dd6bcb11ceea85eca91e670d7872ba7b1ea.tar.bz2
Added current status of played stream (current, total time, play, pause)
Diffstat (limited to 'Plexservice.cpp')
-rw-r--r--Plexservice.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Plexservice.cpp b/Plexservice.cpp
index cf926c3..710cef0 100644
--- a/Plexservice.cpp
+++ b/Plexservice.cpp
@@ -146,7 +146,7 @@ MediaContainer* Plexservice::GetSection(std::string section)
dsyslog("[plex] URI: %s[s%]", m_pPlexSession->getHost().c_str(), pRequest->getURI().c_str());
- MediaContainer* pAllsections = new MediaContainer(&rs);
+ MediaContainer* pAllsections = new MediaContainer(&rs, this->pServer);
//Poco::StreamCopier::copyStream(rs, std::cout);
delete pRequest;
return pAllsections;
@@ -205,12 +205,12 @@ MediaContainer* Plexservice::GetMediaContainer(std::string fullUrl)
Poco::Net::HTTPResponse response;
std::istream &rs = session->receiveResponse(response);
- std::cout << "URI: " << session->getHost() << "[" << pRequest->getURI() << "]" << std::endl;
+ //std::cout << "URI: " << session->getHost() << "[" << pRequest->getURI() << "]" << std::endl;
delete pRequest;
delete session;
-
- MediaContainer* pAllsections = new MediaContainer(&rs);
+
+ MediaContainer* pAllsections = new MediaContainer(&rs, new PlexServer(fileuri.getHost(), fileuri.getPort()));
//Poco::StreamCopier::copyStream(rs, std::cout);
return pAllsections;
}