fixed bug in smp adapter
This commit is contained in:
@@ -388,7 +388,7 @@ class SMP(TelnetAdapter, RecorderAdapter):
|
|||||||
self.tn.write("{}YRCDR\n".format(self.esc_char))
|
self.tn.write("{}YRCDR\n".format(self.esc_char))
|
||||||
return int(TelnetAdapter._get_response_str(self.tn.read_until_non_empty_line()))
|
return int(TelnetAdapter._get_response_str(self.tn.read_until_non_empty_line()))
|
||||||
|
|
||||||
def is_recording(self):
|
def is_recording(self) -> bool:
|
||||||
return self.get_recording_status() == 1
|
return self.get_recording_status() == 1
|
||||||
|
|
||||||
def extent_recording_time(self, extension_time: int):
|
def extent_recording_time(self, extension_time: int):
|
||||||
@@ -723,9 +723,6 @@ class SMP(TelnetAdapter, RecorderAdapter):
|
|||||||
some advanced options skipped
|
some advanced options skipped
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def is_recording(self) -> bool:
|
|
||||||
pass
|
|
||||||
|
|
||||||
def get_input_hdcp_status(self, input_number: int):
|
def get_input_hdcp_status(self, input_number: int):
|
||||||
"""
|
"""
|
||||||
returns:
|
returns:
|
||||||
@@ -790,6 +787,7 @@ def main():
|
|||||||
|
|
||||||
print(smp)
|
print(smp)
|
||||||
print(smp.get_recording_status())
|
print(smp.get_recording_status())
|
||||||
|
print(smp.is_recording())
|
||||||
|
|
||||||
exit()
|
exit()
|
||||||
smp._login()
|
smp._login()
|
||||||
|
|||||||
Reference in New Issue
Block a user