File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1212from Components .ImportChannels import ImportChannels
1313from Components .ParentalControl import parentalControl
1414from Components .PluginComponent import plugins
15+ from Components .RecordingConfig import recType
1516from Components .SystemInfo import BoxInfo
1617from Plugins .Plugin import PluginDescriptor
1718from Screens .InfoBar import InfoBar , MoviePlayer
@@ -542,6 +543,15 @@ def getCurrentService(self):
542543 self .currentlyPlayingService = self .pnav and self .pnav .getCurrentService ()
543544 return self .currentlyPlayingService
544545
546+ def getAnyRecordingsCount (self ):
547+ return len (self .getRecordings (False , pNavigation .isAnyRecording ))
548+
549+ def getIndicatorRecordingsCount (self ):
550+ return len (self .getRecordings (False , recType (config .recording .show_rec_symbol_for_rec_types .getValue ())))
551+
552+ def getRealRecordingsCount (self ):
553+ return len (self .getRecordings (False , pNavigation .isRealRecording ))
554+
545555 def stopService (self ):
546556 if self .pnav :
547557 self .pnav .stopService ()
You can’t perform that action at this time.
0 commit comments