diff options
author | chriszero <zerov83@gmail.com> | 2015-02-15 22:17:20 +0100 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2015-02-15 22:17:20 +0100 |
commit | 6255bbe09625828312e08835bb30d5822d600e46 (patch) | |
tree | 6217475a4f3a9fa075a181f7972f0c99db387a7f /Directory.cpp | |
parent | e412257abf8de4576a180351d24ff07589fa630c (diff) | |
download | vdr-plugin-plex-6255bbe09625828312e08835bb30d5822d600e46.tar.gz vdr-plugin-plex-6255bbe09625828312e08835bb30d5822d600e46.tar.bz2 |
Faster response.
Modified Plexservice for future additions.
Diffstat (limited to 'Directory.cpp')
-rw-r--r-- | Directory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Directory.cpp b/Directory.cpp index 46f2d54..64e2ddf 100644 --- a/Directory.cpp +++ b/Directory.cpp @@ -7,7 +7,6 @@ namespace plexclient Directory::Directory(Poco::XML::Node* pNode, MediaContainer* parent) { if(Poco::icompare(pNode->nodeName(), "Directory") == 0) { - m_pParent = parent; Poco::XML::AutoPtr<Poco::XML::NamedNodeMap> pAttribs = pNode->attributes(); m_bAllowSync = GetNodeValueAsBool(pAttribs->getNamedItem("allowSync")); @@ -28,13 +27,14 @@ Directory::Directory(Poco::XML::Node* pNode, MediaContainer* parent) pAttribs->release(); } + if(m_sTitle2.empty()) m_sTitle2 = parent->m_sTitle2; } std::string Directory::GetTitle() { switch(m_eType) { case SEASON: - return Poco::format("%s - Staffel %d", m_pParent->m_sTitle2, m_iIndex); + return Poco::format("%s - Staffel %d", m_sTitle2, m_iIndex); default: return m_sTitle; } |