summaryrefslogtreecommitdiff
path: root/MediaContainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'MediaContainer.cpp')
-rw-r--r--MediaContainer.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/MediaContainer.cpp b/MediaContainer.cpp
index 959c537..8f68300 100644
--- a/MediaContainer.cpp
+++ b/MediaContainer.cpp
@@ -33,6 +33,8 @@ MediaContainer::MediaContainer(std::istream* response, PlexServer* Server)
m_bAllowSync = GetNodeValueAsBool(pAttribs->getNamedItem("allowSync"));
m_sArt = GetNodeValue(pAttribs->getNamedItem("art"));
m_sSummary = GetNodeValue(pAttribs->getNamedItem("summary"));
+ m_iParentIndex = GetNodeValueAsInt(pAttribs->getNamedItem("parentIndex"));
+ m_iParentYear = GetNodeValueAsInt(pAttribs->getNamedItem("parentYear"));
pAttribs->release();
} else if(Poco::icompare(pNode->nodeName(), "Directory") == 0) {
@@ -49,6 +51,18 @@ MediaContainer::MediaContainer(std::istream* response, PlexServer* Server)
}
}
+std::string MediaContainer::ArtUri()
+{
+ if(m_sArt.find("http://") != std::string::npos) return m_sArt;
+ return m_pServer->GetUri() + m_sArt;
+}
+
+std::string MediaContainer::ThumbUri()
+{
+ if(m_sThumb.find("http://") != std::string::npos) return m_sThumb;
+ return m_pServer->GetUri() + m_sThumb;
+}
+
void MediaContainer::PreCache()
{
bool foo;