From bd3d480a94558344f0a55707bc59b181fc7ea943 Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 28 Mar 2016 20:41:54 +0200 Subject: paralleling cPictureCache. Multiple server connections now possible --- PVideo.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'PVideo.cpp') 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()); -- cgit v1.2.3