diff --git a/ovos_plugin_common_play/ocp/__init__.py b/ovos_plugin_common_play/ocp/__init__.py index 5643c4b..04476f1 100644 --- a/ovos_plugin_common_play/ocp/__init__.py +++ b/ovos_plugin_common_play/ocp/__init__.py @@ -162,15 +162,11 @@ def register_ocp_intents(self, message=None): # trigger a presence announcement from all loaded ocp skills self.bus.emit(Message("ovos.common_play.skills.get")) - def register_media_intents(self, force=False): + def register_media_intents(self): """ NOTE: uses the same format as mycroft .intent files, language support is handled the same way """ - if not force and self.using_new_pipeline: - LOG.debug("skipping Classic OCP media type intents registration") - return - locale_folder = join(dirname(__file__), "res", "locale", self.lang) intents = self.intent2media if self.settings.get("adult_content", False): diff --git a/test/unittests/test_ocp.py b/test/unittests/test_ocp.py index e4d6b4f..4fdb3b3 100644 --- a/test/unittests/test_ocp.py +++ b/test/unittests/test_ocp.py @@ -75,7 +75,7 @@ def test_classify_media(self): movie = "play a movie" news = "play the latest news" unknown = "play something" - self.ocp.register_media_intents(force=True) + self.ocp.register_media_intents() self.assertEqual(self.ocp.classify_media(music), MediaType.MUSIC) self.assertEqual(self.ocp.classify_media(movie), MediaType.MOVIE) self.assertEqual(self.ocp.classify_media(news), MediaType.NEWS)