From b52523568f1d5a46312b528a4d0442675c834e1a Mon Sep 17 00:00:00 2001 From: jumpmanjay Date: Wed, 21 Sep 2016 09:18:26 -0500 Subject: [PATCH] only show recordings if DVR enabled --- Contents/Code/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Contents/Code/__init__.py b/Contents/Code/__init__.py index 737d4ca..f18f360 100644 --- a/Contents/Code/__init__.py +++ b/Contents/Code/__init__.py @@ -39,7 +39,8 @@ def MainMenu(): oc = ObjectContainer() oc.add(DirectoryObject(key=Callback(ShowLiveTV, title=L('LiveTV')), title=L('LiveTV'), thumb=R(ICON_LIVETV))) - oc.add(DirectoryObject(key=Callback(ShowMainRecordingsMenu, title=L('Recordings')), title=L('Recordings'), thumb=R(ICON_RECORDINGS))) + if pyhdhr.hasSDDVR(): + oc.add(DirectoryObject(key=Callback(ShowMainRecordingsMenu, title=L('Recordings')), title=L('Recordings'), thumb=R(ICON_RECORDINGS))) oc.add(InputDirectoryObject(key=Callback(SearchAll), title=L('SearchAll'), thumb=R(ICON_SEARCH))) oc.add(PrefsObject(title=L('Settings'), thumb=R(ICON_SETTINGS))) debug = Prefs['EnableDebug']