This is the required code change (in RecordTimer.py):
Code:
@@ -24,6 +24,8 @@
from bisect import insort
from sys import maxint
first
+import string
+
# ok, for descriptions etc we have:
# service reference (to get the service name)
# name (title)
@@ -604,6 +606,21 @@
# retry
self.begin = time() + self.backoff
return False
+# Report the tuner that this recording is using
+ if hasattr(self.record_service, 'frontendInfo'):
+ feinfo = self.record_service.frontendInfo()
+ if feinfo and hasattr(feinfo, 'getFrontendData'):
+ tn = feinfo.getFrontendData().get("tuner_number", -1)
+ if tn < 0 or tn > 25:
+ tuner = "Unknown"
+ else:
+ tuner = string.uppercase[tn]
+ self.log(11, "Recording using tuner %s" % tuner)
+ else:
+ self.log(11, "getFrontendData() failed - tuner unknown")
+ feinfo = None # Free any object...
+ else:
+ self.log(11, "No frontendInfo for recording...")
return True
elif next_state == self.StateEnded or next_state == self.StateFailed:
and here's a copy of that file with the change included.
RecordTimer.zip
Just drop it into /usr/lib/python/enigma2 (take a backup copy of the existing RecordTimer.pyo first) and restart the GUI.
Any interest in this in general? Should I submit it as a PR for inclusion as standard?