diff options
author | Christian <zerov83@googlemail.com> | 2015-12-20 18:55:27 +0100 |
---|---|---|
committer | Christian <zerov83@googlemail.com> | 2015-12-20 18:55:27 +0100 |
commit | 2a112bcf6f15603d46ab904eabb13bd8ee062a91 (patch) | |
tree | b948261300ea449823485305b2d980504190b11d /PVideo.cpp | |
parent | 135ed5d0ce1613f70f4b2ddcb9e8bca721ffca9e (diff) | |
parent | 4775c62bf44ba6d757722611313f53d6dd2a0b56 (diff) | |
download | vdr-plugin-plex-remoteserver.tar.gz vdr-plugin-plex-remoteserver.tar.bz2 |
Merge pull request #2 from chriszero/remoteserverremoteserver
merge remoteserver branch
Diffstat (limited to 'PVideo.cpp')
-rw-r--r-- | PVideo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -163,7 +163,7 @@ std::string Video::GetTitle() bool Video::SetStream(Stream* stream) { try { - Poco::Net::HTTPClientSession session(m_pServer->GetIpAdress(), m_pServer->GetPort()); + Poco::Net::HTTPClientSession session(m_pServer->GetHost(), m_pServer->GetPort()); std::string uri = Poco::format("/library/parts/%d?%s", m_Media.m_iPartId, stream->GetSetStreamQuery()); Poco::Net::HTTPRequest req(Poco::Net::HTTPRequest::HTTP_PUT, uri); @@ -186,7 +186,7 @@ bool Video::SetStream(Stream* stream) bool Video::SetUnwatched() { try { - Poco::Net::HTTPClientSession session(m_pServer->GetIpAdress(), m_pServer->GetPort()); + Poco::Net::HTTPClientSession session(m_pServer->GetHost(), m_pServer->GetPort()); std::string uri = Poco::format("/:/unscrobble?key=%d&identifier=com.plexapp.plugins.library", m_iRatingKey); Poco::Net::HTTPRequest req(Poco::Net::HTTPRequest::HTTP_GET, uri); @@ -209,7 +209,7 @@ bool Video::SetUnwatched() bool Video::SetWatched() { try { - Poco::Net::HTTPClientSession session(m_pServer->GetIpAdress(), m_pServer->GetPort()); + Poco::Net::HTTPClientSession session(m_pServer->GetHost(), m_pServer->GetPort()); std::string uri = Poco::format("/:/scrobble?key=%d&identifier=com.plexapp.plugins.library", m_iRatingKey); Poco::Net::HTTPRequest req(Poco::Net::HTTPRequest::HTTP_GET, uri); |