Merge branch 'develop' into patch-1

This commit is contained in:
Jan Speller 2023-01-24 13:18:54 +01:00 committed by GitHub
commit bd25ff75e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 1 deletions

View file

@ -48,6 +48,11 @@ class LineInInput(InputBase):
if not lineInProc.isRunning:
logging.warning("asla was down - try to restart")
lineInProc.start()
if lineInProc.isRunning:
logging.info("rtl_fm is back up - restarting multimon...")
mmProc.setStdin(lineInProc.stdout)
mmProc.start()
elif not mmProc.isRunning:
logging.warning("multimon was down - try to restart")
mmProc.start()

View file

@ -47,6 +47,11 @@ class PulseAudioInput(InputBase):
if not PulseAudioProc.isRunning:
logging.warning("PulseAudio was down - try to restart")
PulseAudioProc.start()
if PulseAudioProc.isRunning:
logging.info("rtl_fm is back up - restarting multimon...")
mmProc.setStdin(PulseAudioProc.stdout)
mmProc.start()
elif not mmProc.isRunning:
logging.warning("multimon was down - try to restart")
mmProc.start()

View file

@ -72,7 +72,7 @@ class BoswatchPlugin(PluginBase):
loop = asyncio.get_event_loop()
future = asyncio.ensure_future(self.asyncRequests(urls))
future = asyncio.ensure_future(self._asyncRequests(urls))
loop.run_until_complete(future)
async def _asyncRequests(self, urls):

View file

@ -8,6 +8,7 @@ mkdocs
# for develope only
pytest
pytest-cov
flake8==4.0.1
pytest-flake8
pytest-flakes
pytest-randomly