diff options
-rw-r--r-- | PlexHTTPRequestHandler.cpp | 11 | ||||
-rw-r--r-- | plex.cpp | 2 |
2 files changed, 5 insertions, 8 deletions
diff --git a/PlexHTTPRequestHandler.cpp b/PlexHTTPRequestHandler.cpp index 552239a..4de66f1 100644 --- a/PlexHTTPRequestHandler.cpp +++ b/PlexHTTPRequestHandler.cpp @@ -31,8 +31,7 @@ void PlexHTTPRequestHandler::AddHeaders(Poco::Net::HTTPServerResponse& response, response.add("Access-Control-Allow-Origin", "*"); response.add("X-Plex-Version", VERSION); response.add("X-Plex-Client-Identifier", Config::GetInstance().GetUUID()); - response.add("X-Plex-Product", "player"); - response.add("X-Plex-Product", "PlexVDR"); + response.add("X-Plex-Product", DESCRIPTION); response.add("X-Plex-Device-Name", Config::GetInstance().GetHostname()); response.add("X-Plex-Platform", "VDR"); response.add("X-Plex-Model", "Linux"); @@ -148,16 +147,14 @@ void ResourceRequestHandler::handleRequest(Poco::Net::HTTPServerRequest& request std::ostream& ostr = response.send(); ostr << "<?xml version=\"1.0\" encoding=\"utf-8\"?>" "<MediaContainer>" - "<Player title=\"" << Config::GetInstance().GetHostname() - << "\"" + "<Player title=\"" << Config::GetInstance().GetHostname() << "\"" " protocol=\"plex\"" " protocolVersion=\"1\"" " protocolCapabilities=\"navigation,playback,timeline\"" " machineIdentifier=\"" << Config::GetInstance().GetUUID() << "\"" - " product=\"PlexVDR\"" + " product=\"" << DESCRIPTION << "\"" " platform=\"Linux\"" - " platformVersion=\"" << VERSION - << "\"" + " platformVersion=\"" << VERSION << "\"" " deviceClass=\"HTPC\"" "/> </MediaContainer>"; @@ -332,7 +332,7 @@ bool cMyPlugin::Initialize(void) // First Startup? Save UUID SetupStore("UUID", Config::GetInstance().GetUUID().c_str()); - plexclient::plexgdm::GetInstance().clientDetails(Config::GetInstance().GetUUID(), DESCRIPTION, "3200", "VDR", VERSION); + plexclient::plexgdm::GetInstance().clientDetails(Config::GetInstance().GetUUID(), Config::GetInstance().GetHostname(), "3200", DESCRIPTION, VERSION); plexclient::plexgdm::GetInstance().Start(); plexclient::ControlServer::GetInstance().Start(); |