summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian <zerov83@gmail.com>2016-03-30 21:51:20 +0200
committerChristian <zerov83@gmail.com>2016-03-30 21:51:20 +0200
commitee8662006d8bd06e79f12ee5143ecebd05eb2a75 (patch)
tree735b579a79657ccdbf90c96a40f4ca7ee2d0a7a9
parent566851085370849464623667eec1005c3b0cddfa (diff)
downloadvdr-plugin-plex-ee8662006d8bd06e79f12ee5143ecebd05eb2a75.tar.gz
vdr-plugin-plex-ee8662006d8bd06e79f12ee5143ecebd05eb2a75.tar.bz2
Added token {tagline}
-rw-r--r--PVideo.cpp2
-rw-r--r--PVideo.h1
-rw-r--r--plexSdOsd.cpp1
-rw-r--r--templates/plug-plex-detail.xml1
-rw-r--r--templates/plug-plex-root.xml1
-rw-r--r--tokendefinitions.h1
6 files changed, 7 insertions, 0 deletions
diff --git a/PVideo.cpp b/PVideo.cpp
index 9e38caa..15a4ce1 100644
--- a/PVideo.cpp
+++ b/PVideo.cpp
@@ -91,6 +91,7 @@ void Video::Parse(Poco::XML::Node* pNode)
m_sGrandparentTitle = GetNodeValue(pAttribs->getNamedItem("grandparentTitle"));
m_sContentRating = GetNodeValue(pAttribs->getNamedItem("contentRating"));
m_sSummary = GetNodeValue(pAttribs->getNamedItem("summary"));
+ m_sTagline = GetNodeValue(pAttribs->getNamedItem("tagline"));
m_lViewoffset = GetNodeValueAsLong(pAttribs->getNamedItem("viewOffset"));
m_tLastViewedAt = GetNodeValueAsTimeStamp(pAttribs->getNamedItem("lastViewedAt"));
m_iYear = GetNodeValueAsInt(pAttribs->getNamedItem("year"));
@@ -254,6 +255,7 @@ void Video::AddTokens(std::shared_ptr<skindesignerapi::cOsdElement> grid, bool c
grid->AddStringToken((int)(eTokenGridStr::title), m_sTitle.c_str());
grid->AddStringToken((int)(eTokenGridStr::orginaltitle), m_sOriginalTitle.c_str());
grid->AddStringToken((int)(eTokenGridStr::summary), m_sSummary.c_str());
+ grid->AddStringToken((int)(eTokenGridStr::tagline), m_sTagline.c_str());
grid->AddStringToken((int)(eTokenGridStr::contentrating), m_sContentRating.c_str());
grid->AddIntToken((int)(eTokenGridInt::rating), m_dRating*10);
grid->AddStringToken((int)(eTokenGridStr::ratingstring), Poco::format("%.1f", m_dRating).c_str());
diff --git a/PVideo.h b/PVideo.h
index ed5b8dc..2660f36 100644
--- a/PVideo.h
+++ b/PVideo.h
@@ -63,6 +63,7 @@ public:
std::string m_sGrandparentTitle;
std::string m_sContentRating;
std::string m_sSummary;
+ std::string m_sTagline;
long m_lViewoffset;
Poco::Timestamp m_tLastViewedAt;
int m_iYear;
diff --git a/plexSdOsd.cpp b/plexSdOsd.cpp
index fce4044..67ab462 100644
--- a/plexSdOsd.cpp
+++ b/plexSdOsd.cpp
@@ -324,6 +324,7 @@ void cPlexSdOsd::DefineGridTokens(skindesignerapi::cTokenContainer* tk)
tk->DefineStringToken("{title}", (int)eTokenGridStr::title);
tk->DefineStringToken("{orginaltitle}", (int)eTokenGridStr::orginaltitle);
tk->DefineStringToken("{summary}", (int)eTokenGridStr::summary);
+ tk->DefineStringToken("{tagline}", (int)eTokenGridStr::tagline);
tk->DefineStringToken("{contentrating}", (int)eTokenGridStr::contentrating);
tk->DefineStringToken("{ratingstring}", (int)eTokenGridStr::ratingstring);
tk->DefineStringToken("{studio}", (int)eTokenGridStr::studio);
diff --git a/templates/plug-plex-detail.xml b/templates/plug-plex-detail.xml
index 670fa7b..f48a81d 100644
--- a/templates/plug-plex-detail.xml
+++ b/templates/plug-plex-detail.xml
@@ -40,6 +40,7 @@
{duration} int, minutes, total duration
{orginaltitle} original title
{summary} Description, plot, summary
+ {tagline} Tagline
{studio} Studio
{viewCount} Unseen if less than 1
diff --git a/templates/plug-plex-root.xml b/templates/plug-plex-root.xml
index f976546..31d2704 100644
--- a/templates/plug-plex-root.xml
+++ b/templates/plug-plex-root.xml
@@ -119,6 +119,7 @@
{viewoffsetpercent} last viewed position as percent value 0 - 100
{duration} int, minutes, total duration
{orginaltitle} original title
+ {tagline} Tagline
{summary} Description, plot, summary
{studio} Studio
{viewCount} Unseen if less than 1
diff --git a/tokendefinitions.h b/tokendefinitions.h
index bed4bc0..cf6036c 100644
--- a/tokendefinitions.h
+++ b/tokendefinitions.h
@@ -79,6 +79,7 @@ enum class eTokenGridStr {
title = 0,
orginaltitle,
summary,
+ tagline,
contentrating,
ratingstring,
studio,