summaryrefslogtreecommitdiff
path: root/plexOsd.cpp
diff options
context:
space:
mode:
authorchriszero <zerov83@gmail.com>2015-12-23 22:08:13 +0100
committerchriszero <zerov83@gmail.com>2015-12-23 22:08:13 +0100
commitd8bd5068f6fc8f70767e60aead11261ce7ca9d59 (patch)
tree686bfec73644ca9c2d64a39a84d0497dafc734f4 /plexOsd.cpp
parentc7376a0dd2468d5f1ae702b22608c9bf553288e5 (diff)
downloadvdr-plugin-plex-d8bd5068f6fc8f70767e60aead11261ce7ca9d59.tar.gz
vdr-plugin-plex-d8bd5068f6fc8f70767e60aead11261ce7ca9d59.tar.bz2
Better display without skindesigner.
Picturecache changes for remote servers.
Diffstat (limited to 'plexOsd.cpp')
-rw-r--r--plexOsd.cpp22
1 files changed, 12 insertions, 10 deletions
diff --git a/plexOsd.cpp b/plexOsd.cpp
index ba498d5..c74153e 100644
--- a/plexOsd.cpp
+++ b/plexOsd.cpp
@@ -89,7 +89,6 @@ eOSState cPlexBrowser::ProcessKey(eKeys key)
case kBack:
return LevelUp();
case kRed:
- std::cout << "RED";
if(item->IsVideo()) {
std::cout << " Video Info";
}
@@ -180,16 +179,19 @@ cPlexMenu::cPlexMenu(const char *title, int c0, int c1, int c2, int c3, int c4)
SetHasHotkeys();
for(std::vector<plexclient::PlexServer>::iterator it = plexclient::plexgdm::GetInstance().GetPlexservers().begin(); it != plexclient::plexgdm::GetInstance().GetPlexservers().end(); ++it) {
- //&(*it)
- auto s1 = std::make_shared<plexclient::Plexservice>( &(*it) );
- s1->StartUri = "/library/sections";
- Add(new cPlexOsdItem(Poco::format(tr("%s - Library"), it->GetServerName()).c_str(), s1));
-
- auto s2 = std::make_shared<plexclient::Plexservice>( &(*it) );
- s2->StartUri = "/video";
- Add(new cPlexOsdItem(Poco::format(tr("%s - Video Channels"), it->GetServerName()).c_str(), s2 ));
+ for(std::vector<ViewEntry>::iterator vEntry = Config::GetInstance().m_serverViewentries.begin(); vEntry != Config::GetInstance().m_serverViewentries.end(); ++vEntry) {
+ auto plexService = std::make_shared<plexclient::Plexservice>( &(*it) );
+ plexService->StartUri = vEntry->PlexPath;
+ Add(new cPlexOsdItem(Poco::format("%s - %s", it->GetServerName(), vEntry->Name ).c_str(), plexService ));
+ }
+ for(std::vector<ViewEntry>::iterator vEntry = Config::GetInstance().m_viewentries.begin(); vEntry != Config::GetInstance().m_viewentries.end(); ++vEntry) {
+ auto plexService = std::make_shared<plexclient::Plexservice>( &(*it) );
+ plexService->StartUri = vEntry->PlexPath;
+ Add(new cPlexOsdItem(Poco::format("%s - %s", it->GetServerName(), vEntry->Name ).c_str(), plexService ));
+ }
}
-
+
+
if(Count() < 1) {
Add(new cPlexOsdItem(tr("No Plex Media Server found.")), false);
}