Skip to content

Commit

Permalink
add signal info as attr
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveicedgreentea committed Jun 30, 2023
1 parent 700c979 commit c199068
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions madvr/madvr.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,7 @@ async def read_notifications(self) -> None:
)
await self._reconnect()
except (AttributeError, asyncio.TimeoutError, OSError) as err:
self.logger.debug(
"Reading notifications failed or timed out: %s", err
)
self.logger.debug("Reading notifications failed or timed out: %s", err)
await asyncio.sleep(5)
continue

Expand All @@ -368,8 +366,10 @@ async def _process_notifications(self, msg: str) -> None:
# at least madvr sends attributes in a consistent order
# could use zip here but why? this works and is simple
if "NoSignal" in title:
self.msg_dict["is_signal"] = False
return
if "IncomingSignalInfo" in title:
self.msg_dict["is_signal"] = True
self.msg_dict["incoming_res"] = signal_info[0]
self.msg_dict["incoming_frame_rate"] = signal_info[1]
self.msg_dict["incoming_color_space"] = signal_info[3]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="py_madvr",
version="1.4.4",
version="1.4.5",
author="iloveicedgreentea",
description="A package to control MadVR Envy over IP",
long_description=long_description,
Expand Down

0 comments on commit c199068

Please sign in to comment.