diff options
| author | Christian <zerov83@gmail.com> | 2016-03-28 20:41:54 +0200 |
|---|---|---|
| committer | Christian <zerov83@gmail.com> | 2016-03-28 20:41:54 +0200 |
| commit | bd3d480a94558344f0a55707bc59b181fc7ea943 (patch) | |
| tree | d54aaa531c747df28950e0db542f9d9cb26874e0 /PVideo.cpp | |
| parent | 495f828b507611fafa49997adf7f2bda815cdcb8 (diff) | |
| download | vdr-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.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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()); |
