diff options
Diffstat (limited to 'Plexservice.cpp')
-rw-r--r-- | Plexservice.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Plexservice.cpp b/Plexservice.cpp index a61caec..d208882 100644 --- a/Plexservice.cpp +++ b/Plexservice.cpp @@ -145,11 +145,13 @@ std::shared_ptr<MediaContainer> Plexservice::GetSection(std::string section, boo } } -std::shared_ptr<MediaContainer> Plexservice::GetLastSection() +std::shared_ptr<MediaContainer> Plexservice::GetLastSection(bool current) { if(m_vUriStack.size() > 1) { - // discard last one - m_vUriStack.pop(); + if(!current) { + // discard last one + m_vUriStack.pop(); + } std::string uri = m_vUriStack.top(); return GetSection(uri, false); } |