diff options
author | chriszero <zerov83@gmail.com> | 2015-02-10 21:13:51 +0100 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2015-02-10 21:13:51 +0100 |
commit | 158d1055599205ccca462f97c190994fa28af8f0 (patch) | |
tree | 02c5645bf48595d182eeb2dee81884173d634a03 /Plexservice.cpp | |
parent | 9b62917c4da85e5ec403792fd9a198b1cb005013 (diff) | |
download | vdr-plugin-plex-158d1055599205ccca462f97c190994fa28af8f0.tar.gz vdr-plugin-plex-158d1055599205ccca462f97c190994fa28af8f0.tar.bz2 |
Support for Plex Channels (Youtube, Vimeo, ZDF Mediathek, etc...)
Diffstat (limited to 'Plexservice.cpp')
-rw-r--r-- | Plexservice.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Plexservice.cpp b/Plexservice.cpp index f156550..c5e028a 100644 --- a/Plexservice.cpp +++ b/Plexservice.cpp @@ -184,7 +184,7 @@ MediaContainer* Plexservice::GetMediaContainer(std::string fullUrl) Poco::URI fileuri(fullUrl); Poco::Net::HTTPRequest* pRequest = new Poco::Net::HTTPRequest(Poco::Net::HTTPRequest::HTTP_GET, - fileuri.getPath(), Poco::Net::HTTPMessage::HTTP_1_1); + fileuri.getPathAndQuery(), Poco::Net::HTTPMessage::HTTP_1_1); pRequest->add("User-Agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.52 Safari/537.17"); @@ -205,8 +205,6 @@ MediaContainer* Plexservice::GetMediaContainer(std::string fullUrl) Poco::Net::HTTPResponse response; std::istream &rs = session->receiveResponse(response); - //std::cout << "URI: " << session->getHost() << "[" << pRequest->getURI() << "]" << std::endl; - MediaContainer* pAllsections = new MediaContainer(&rs, new PlexServer(fileuri.getHost(), fileuri.getPort())); delete pRequest; |