From b6f08a27a8c9de84743279fa11ca7c1aa847803f Mon Sep 17 00:00:00 2001 From: miro Date: Thu, 6 Jun 2024 04:33:21 +0100 Subject: [PATCH] add helper property --- ovos_plugin_common_play/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ovos_plugin_common_play/__init__.py b/ovos_plugin_common_play/__init__.py index e18b864..36065aa 100644 --- a/ovos_plugin_common_play/__init__.py +++ b/ovos_plugin_common_play/__init__.py @@ -25,6 +25,10 @@ def __init__(self, config, bus=None, name='ovos.common_play'): self.handle_receive_meta) self.create_ocp(self.config) + @property + def player(self): + return self.ocp.player + def create_ocp(self, config: dict): self.config = config self.config.setdefault("mode", "auto")