From 21ee9e67ff7029c099c9fd772d3dc3e23c955199 Mon Sep 17 00:00:00 2001 From: chriszero Date: Sat, 4 Apr 2015 15:10:52 +0200 Subject: more skindesigner support --- Directory.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Directory.cpp') diff --git a/Directory.cpp b/Directory.cpp index 5102015..e62714f 100644 --- a/Directory.cpp +++ b/Directory.cpp @@ -5,8 +5,9 @@ namespace plexclient { -Directory::Directory(Poco::XML::Node* pNode, MediaContainer* parent) +Directory::Directory(Poco::XML::Node* pNode, PlexServer* Server, MediaContainer* parent) { + m_pServer = Server; if(Poco::icompare(pNode->nodeName(), "Directory") == 0) { Poco::XML::AutoPtr pAttribs = pNode->attributes(); @@ -41,9 +42,9 @@ std::string Directory::GetTitle() } } -void Directory::AddTokens(std::shared_ptr grid) +void Directory::AddTokens(std::shared_ptr grid, bool clear, std::function OnCached) { - grid->ClearTokens(); + if(clear) grid->ClearTokens(); grid->AddStringToken("title", m_sTitle); } -- cgit v1.2.3