def channel_monitor(): ib = InfoBeamerQuery('127.0.0.1') con = ib.node("root").io(raw=True) for line in con: stream_url = line.strip() if stream_url: q.put(stream_url) break for line in con: now_url = line.strip() if now_url != stream_url: break os.kill(os.getpid(), 9)
def reconnect(self): self._io = InfoBeamerQuery(self._addr).node("videowall").io(raw=True)