summaryrefslogtreecommitdiff
path: root/PVideo.cpp
diff options
context:
space:
mode:
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());