--- RecordTimer.py.orig.3.2_007 +++ RecordTimer.py @@ -72,6 +72,42 @@ return None return dirname +#GML - start section +# +def SetIconDisplay(val): + if val == 0: # An absolute setting to clear it... + f = open('/proc/stb/lcd/symbol_record','w') + f.write('0') + f.close() + f = open('/proc/stb/lcd/symbol_circle','w') + f.write('0') + f.close() + return +# + if val != 1 and val != -1: + return +# + f = open('/proc/stb/lcd/symbol_record', 'r').readline()[:-1] + try: + nrecordings = int(f) + val + sym = (nrecordings-1)%4 + 1 + except: + nrecordings = 0 + if nrecordings <= 0: + sym = 0 + nrecordings = 0 + f = open('/proc/stb/lcd/symbol_record','w') + f.write(str(nrecordings)) + f.close() + f = open('/proc/stb/lcd/symbol_circle','w') + f.write(str(sym)) + f.close() + return + + +SetIconDisplay(0) # Initialize +#GML - end section + # type 1 = digital television service # type 4 = nvod reference service (NYI) # type 17 = MPEG-2 HD digital television service @@ -468,6 +504,10 @@ self.state -= 1 return True self.log(12, "stop recording") +#GML Post 2 in: (part 1 of 2) +# http://www.world-of-satellite.com/showthread.php?42224-Front-Panel-Icons-Fixed + SetIconDisplay(-1) +# End of Post 2 fix if not self.justplay: if self.record_service: NavigationInstance.instance.stopRecordService(self.record_service) @@ -681,6 +721,10 @@ # that in our state, with also keeping the possibility to re-try. # TODO: this has to be done. elif event == iRecordableService.evStart: +#GML Post 2 in: (part 2 of 2) +# http://www.world-of-satellite.com/showthread.php?42224-Front-Panel-Icons-Fixed + SetIconDisplay(1) +# End of Post 2 fix text = _("A recording has been started:\n%s") % self.name notify = config.usage.show_message_when_recording_starts.value and not Screens.Standby.inStandby and self.InfoBarInstance and self.InfoBarInstance.execing if self.dirnameHadToFallback: