summaryrefslogtreecommitdiff
path: root/plexSdOsd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plexSdOsd.cpp')
-rw-r--r--plexSdOsd.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/plexSdOsd.cpp b/plexSdOsd.cpp
index ac0c26a..1c25fed 100644
--- a/plexSdOsd.cpp
+++ b/plexSdOsd.cpp
@@ -69,6 +69,22 @@ eOSState cPlexSdOsd::ProcessKey(eKeys Key)
if (m_pBrowserGrid->DrawTime())
m_pBrowserGrid->Flush();
+ //check if some plexservers are online
+ if(plexclient::plexgdm::GetInstance().GetFirstServer() == NULL ||
+ (plexclient::plexgdm::GetInstance().GetFirstServer() && plexclient::plexgdm::GetInstance().GetFirstServer()->Offline)
+ ) {
+ DrawMessage(std::string(tr("No Plex Media Server found.")));
+
+ switch (Key & ~k_Repeat) {
+ case kOk:
+ case kBack:
+ return eOSState::osEnd;
+ break;
+ default:
+ return eOSState::osContinue;
+ }
+ }
+
if(m_messageDisplayed) {
vid = dynamic_cast<plexclient::Video*>(m_pBrowserGrid->SelectedObject());
switch (Key & ~k_Repeat) {