Skip to content

Commit

Permalink
respect self.disable_ocp flag
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Jul 17, 2024
1 parent 36cadc8 commit edc8831
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ovos_audio/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ def __init__(self, bus, autoload=True, disable_ocp=False,
self.load_services()

def find_ocp(self):
if self.disable_ocp:
LOG.info("classic OCP is disabled in config, OCP bus api not available!")
# NOTE: ovos-core should detect this and use the classic audio service api automatically
return

try:
from ovos_plugin_common_play import OCPAudioBackend
except ImportError:
Expand Down

0 comments on commit edc8831

Please sign in to comment.