diff options
author | chriszero <zerov83@gmail.com> | 2015-02-14 18:53:11 +0100 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2015-02-14 18:53:11 +0100 |
commit | e412257abf8de4576a180351d24ff07589fa630c (patch) | |
tree | ed020de5c8257545eca66e96997984731ac60379 /MediaContainer.cpp | |
parent | 20fefdd3f341d6e7f6b15e4926bf5569aa1943d5 (diff) | |
download | vdr-plugin-plex-e412257abf8de4576a180351d24ff07589fa630c.tar.gz vdr-plugin-plex-e412257abf8de4576a180351d24ff07589fa630c.tar.bz2 |
Various Fixes0.1.0
Bump Version to frist beta.
Diffstat (limited to 'MediaContainer.cpp')
-rw-r--r-- | MediaContainer.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/MediaContainer.cpp b/MediaContainer.cpp index fa3c24a..6fa92f6 100644 --- a/MediaContainer.cpp +++ b/MediaContainer.cpp @@ -11,13 +11,14 @@ MediaContainer::MediaContainer(std::istream* response, PlexServer Server) NodeIterator it(pDoc, Poco::XML::NodeFilter::SHOW_ALL); Poco::XML::Node* pNode = it.nextNode(); - while(pNode) { if(Poco::icompare(pNode->nodeName(), "MediaContainer") == 0) { Poco::XML::NamedNodeMap* pAttribs = pNode->attributes(); - - m_sTitle = GetNodeValue(pAttribs->getNamedItem("title1")); + + m_sTitle = GetNodeValue(pAttribs->getNamedItem("title")); + m_sTitle1 = GetNodeValue(pAttribs->getNamedItem("title1")); m_sTitle2 = GetNodeValue(pAttribs->getNamedItem("title2")); + m_iParentIndex = GetNodeValueAsInt(pAttribs->getNamedItem("parentIndex")); m_sThumb = GetNodeValue(pAttribs->getNamedItem("thumb")); m_sViewGroup = GetNodeValue(pAttribs->getNamedItem("viewGroup")); m_sLibrarySectionTitle = GetNodeValue(pAttribs->getNamedItem("librarySectionTitle")); @@ -27,12 +28,13 @@ MediaContainer::MediaContainer(std::istream* response, PlexServer Server) m_iSize = GetNodeValueAsInt(pAttribs->getNamedItem("size")); m_bAllowSync = GetNodeValueAsBool(pAttribs->getNamedItem("allowSync")); m_sArt = GetNodeValue(pAttribs->getNamedItem("art")); + m_sSummary = GetNodeValue(pAttribs->getNamedItem("summary")); pAttribs->release(); } else if(Poco::icompare(pNode->nodeName(), "Directory") == 0) { - m_vDirectories.push_back(Directory(pNode)); + m_vDirectories.push_back(Directory(pNode, this)); } else if(Poco::icompare(pNode->nodeName(), "Video") == 0) { - m_vVideos.push_back(Video(pNode, Server)); + m_vVideos.push_back(Video(pNode, Server, this)); } pNode = it.nextNode(); |