Skip to content

Commit

Permalink
More import refactoring to allow ovos-utils<0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonDaniel committed May 8, 2024
1 parent d14b459 commit 05ffe29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ovos_plugin_manager/templates/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from ovos_plugin_manager.templates.media import AudioPlayerBackend as _AB
from ovos_utils import classproperty
from ovos_utils.log import log_deprecation
from ovos_utils.ocp import PlaybackType, TrackState
from ovos_utils.process_utils import RuntimeRequirements

log_deprecation("ovos_plugin_manager.templates.audio has been deprecated on ovos-audio, "
Expand Down Expand Up @@ -90,6 +89,7 @@ def _uri2meta(uri):
from ovos_ocp_files_plugin.plugin import OCPFilesMetadataExtractor
return OCPFilesMetadataExtractor.extract_metadata(uri)
except:
from ovos_utils.ocp import PlaybackType, TrackState
meta = {"uri": uri,
"skill_id": "mycroft.audio_interface",
"playback": PlaybackType.AUDIO, # TODO mime type check
Expand Down

0 comments on commit 05ffe29

Please sign in to comment.