From 6db4cc525bed890576f81569c1406cc5f385db7a Mon Sep 17 00:00:00 2001 From: chriszero Date: Mon, 15 Jun 2015 19:24:37 +0200 Subject: Corrected tokens from last commit. --- Directory.cpp | 2 +- MediaContainer.cpp | 1 + templates/plug-plex-root.xml | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Directory.cpp b/Directory.cpp index 4c24b7a..1f4c8b3 100644 --- a/Directory.cpp +++ b/Directory.cpp @@ -111,7 +111,7 @@ void Directory::AddTokens(std::shared_ptr grid, bo map gernes; for(auto it = m_vGenre.begin(); it != m_vGenre.end(); it++) { - roles["genre"] = *it; + gernes["genre"] = *it; } grid->AddLoopToken("genres", gernes); diff --git a/MediaContainer.cpp b/MediaContainer.cpp index e676c8d..ba46fe8 100644 --- a/MediaContainer.cpp +++ b/MediaContainer.cpp @@ -22,6 +22,7 @@ MediaContainer::MediaContainer(std::istream* response, PlexServer* Server) m_sTitle1 = GetNodeValue(pAttribs->getNamedItem("title1")); m_sTitle2 = GetNodeValue(pAttribs->getNamedItem("title2")); m_sGrandparentTitle = GetNodeValue(pAttribs->getNamedItem("grandparentTitle")); + m_sParentTitle = GetNodeValue(pAttribs->getNamedItem("parentTitle")); m_iParentIndex = GetNodeValueAsInt(pAttribs->getNamedItem("parentIndex")); m_sThumb = GetNodeValue(pAttribs->getNamedItem("thumb")); m_sBanner = GetNodeValue(pAttribs->getNamedItem("banner")); diff --git a/templates/plug-plex-root.xml b/templates/plug-plex-root.xml index 411dfc1..d3d09ad 100644 --- a/templates/plug-plex-root.xml +++ b/templates/plug-plex-root.xml @@ -94,7 +94,6 @@ {seriestitle} Seriestitle {leafCount} Total leafs, episodes {viewedLeafCount} viewed Leafs, episodes - {childCount} total childs, seasons If the item is a video following tokens are avaliable The item is a video if one of the following tokens are set: {ismovie}, {isepisode} -- cgit v1.2.3