Skip to content

Commit

Permalink
Allow PlaybackType.SKILL search results to be played when there is …
Browse files Browse the repository at this point in the history
…no GUI

As described in #92, this commit permits search results of `PlaybackType.SKILL`
to be played when there is no GUI. The skill handles playback itself and
may not need a GUI.

fixes #92
  • Loading branch information
Ramblurr committed Aug 21, 2023
1 parent b26f4fa commit dea0193
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ovos_plugin_common_play/ocp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def _search(self, phrase, utterance, media_type):
LOG.info("unable to use GUI, filtering non-audio results")
# filter video only streams
results = [r for r in results
if r["playback"] == PlaybackType.AUDIO]
if r["playback"] in [PlaybackType.AUDIO, PlaybackType.SKILL]]
LOG.debug(f"Returning {len(results)} results")
return results

Expand Down

0 comments on commit dea0193

Please sign in to comment.