diff options
author | chriszero <zerov83@gmail.com> | 2015-03-09 19:37:18 +0100 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2015-03-09 19:37:18 +0100 |
commit | eb49ddb616958c42357db216c721a5211abc7659 (patch) | |
tree | 91eae9ffb822b3a7a610c81075441623971add89 /PlexHTTPRequestHandler.cpp | |
parent | 9dc09e5828cbe6f12e665f2336246be1b785b4d9 (diff) | |
download | vdr-plugin-plex-eb49ddb616958c42357db216c721a5211abc7659.tar.gz vdr-plugin-plex-eb49ddb616958c42357db216c721a5211abc7659.tar.bz2 |
Using hostname for player registraton.
Diffstat (limited to 'PlexHTTPRequestHandler.cpp')
-rw-r--r-- | PlexHTTPRequestHandler.cpp | 11 |
1 files changed, 4 insertions, 7 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>"; |