diff options
author | chriszero <zerov83@gmail.com> | 2015-02-19 20:29:12 +0100 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2015-02-19 20:29:12 +0100 |
commit | 7de1748cbaf31337f1f592cc9ee47f7872333f33 (patch) | |
tree | b170afeb9e656675adfe0afa33b7b494be52fad6 /hlsPlayer.cpp | |
parent | 216db1e9eb1800df1969ba3fd6755f898a0b2526 (diff) | |
download | vdr-plugin-plex-7de1748cbaf31337f1f592cc9ee47f7872333f33.tar.gz vdr-plugin-plex-7de1748cbaf31337f1f592cc9ee47f7872333f33.tar.bz2 |
Supporting custom transcoding profile.
Diffstat (limited to 'hlsPlayer.cpp')
-rw-r--r-- | hlsPlayer.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/hlsPlayer.cpp b/hlsPlayer.cpp index fe52c7c..605280f 100644 --- a/hlsPlayer.cpp +++ b/hlsPlayer.cpp @@ -326,10 +326,15 @@ bool cHlsSegmentLoader::StopLoader(void) void cHlsSegmentLoader::AddHeader(Poco::Net::HTTPRequest& req) { req.add("X-Plex-Client-Identifier", Config::GetInstance().GetUUID()); - req.add("X-Plex-Product", "Plex Home Theater"); req.add("X-Plex-Device", "PC"); - req.add("X-Plex-Platform", "Plex Home Theater"); req.add("X-Plex-Model", "Linux"); + if(Config::GetInstance().UseCustomTranscodeProfile) { + req.add("X-Plex-Product", "VDR Plex Plugin"); + req.add("X-Plex-Platform", "VDR Plex Plugin"); + } else { + req.add("X-Plex-Product", "Plex Home Theater"); + req.add("X-Plex-Platform", "Plex Home Theater"); + } } bool cHlsSegmentLoader::Active(void) |