Ticket #7648: MythTV.py.diffu

File MythTV.py.diffu, 806 bytes (added by finlay@…, 12 years ago)

Restore isRecording and getCurrentRecording APIs

Line 
1--- MythTV.py.orig      2009-10-16 14:20:35.000000000 -0700
2+++ MythTV.py   2009-11-23 11:39:22.000000000 -0800
3@@ -285,14 +285,14 @@
4                """
5                Returns a Program object for the current recorders recording.
6                """
7-               res = self.backendCommand('QUERY_RECORDER '+BACKEND_SEP.join([recorder,'GET_CURRENT_RECORDING']))
8+               res = self.backendCommand('QUERY_RECORDER '+BACKEND_SEP.join(['%s'%recorder,'GET_CURRENT_RECORDING']))
9                return Program(res.split(BACKEND_SEP))
10 
11        def isRecording(self, recorder):
12                """
13                Returns a boolean as to whether the given recorder is recording.
14                """
15-               res = self.backendCommand('QUERY_RECORDER '+BACKEND_SEP.join([recorder,'IS_RECORDING']))
16+               res = self.backendCommand('QUERY_RECORDER '+BACKEND_SEP.join(['%s'%recorder,'IS_RECORDING']))
17                if res == '1':
18                        return True
19                else: