From 7b64bf5062f3eb6ddff5d7606e44367bd5077e4c Mon Sep 17 00:00:00 2001 From: chriszero Date: Tue, 15 Dec 2015 22:15:35 +0100 Subject: Added SSL support, started support for remote resources (servers). Browsing remote servers is working. plex.tv login is mandatory. --- PVideo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'PVideo.cpp') diff --git a/PVideo.cpp b/PVideo.cpp index 4fbcda1..d92caae 100644 --- a/PVideo.cpp +++ b/PVideo.cpp @@ -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); -- cgit v1.2.3