summaryrefslogtreecommitdiff
path: root/PVideo.cpp
diff options
context:
space:
mode:
authorChristian <zerov83@gmail.com>2016-03-28 20:41:54 +0200
committerChristian <zerov83@gmail.com>2016-03-28 20:41:54 +0200
commitbd3d480a94558344f0a55707bc59b181fc7ea943 (patch)
treed54aaa531c747df28950e0db542f9d9cb26874e0 /PVideo.cpp
parent495f828b507611fafa49997adf7f2bda815cdcb8 (diff)
downloadvdr-plugin-plex-bd3d480a94558344f0a55707bc59b181fc7ea943.tar.gz
vdr-plugin-plex-bd3d480a94558344f0a55707bc59b181fc7ea943.tar.bz2
paralleling cPictureCache.
Multiple server connections now possible
Diffstat (limited to 'PVideo.cpp')
-rw-r--r--PVideo.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/PVideo.cpp b/PVideo.cpp
index ca4add7..6b502bc 100644
--- a/PVideo.cpp
+++ b/PVideo.cpp
@@ -211,10 +211,11 @@ bool Video::SetUnwatched()
try {
std::string uri = Poco::format("/:/unscrobble?key=%d&identifier=com.plexapp.plugins.library", m_iRatingKey);
- Poco::Net::HTTPResponse resp;
bool ok;
- m_pServer->MakeRequest(resp, ok, uri);
-
+ auto cSession = m_pServer->MakeRequest(ok, uri);
+ Poco::Net::HTTPResponse resp;
+ cSession->receiveResponse(resp);
+
if(resp.getStatus() == 200) {
dsyslog("[plex]: Set Unwatched: %s", uri.c_str());
return true;
@@ -231,9 +232,8 @@ bool Video::SetWatched()
try {
std::string uri = Poco::format("/:/scrobble?key=%d&identifier=com.plexapp.plugins.library", m_iRatingKey);
- Poco::Net::HTTPResponse resp;
bool ok;
- m_pServer->MakeRequest(resp, ok, uri);
+ auto cSession = m_pServer->MakeRequest(ok, uri);
if(ok) {
dsyslog("[plex]: Set Watched: %s", uri.c_str());