diff --git a/__init__.py b/__init__.py index ce37926..f7e64c8 100755 --- a/__init__.py +++ b/__init__.py @@ -6,6 +6,8 @@ from ovos_workshop.skills.common_play import OVOSCommonPlaybackSkill, \ ocp_search from py_bandcamp import BandCamp +from ovos_utils.process_utils import RuntimeRequirements +from ovos_utils import classproperty class BandCampSkill(OVOSCommonPlaybackSkill): @@ -14,6 +16,18 @@ def __init__(self): self.supported_media = [MediaType.GENERIC, MediaType.MUSIC] self.skill_icon = join(dirname(__file__), "ui", "logo.png") + @classproperty + def runtime_requirements(self): + return RuntimeRequirements(internet_before_load=True, + network_before_load=True, + gui_before_load=False, + requires_internet=True, + requires_network=True, + requires_gui=False, + no_internet_fallback=False, + no_network_fallback=False, + no_gui_fallback=True) + # common play @ocp_search() def search_bandcamp_artist(self, phrase, diff --git a/requirements.txt b/requirements.txt index 983b71e..9cca811 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ py_bandcamp>=0.7.0 -ovos_workshop>=0.0.5a1 \ No newline at end of file +ovos-utils~=0.0, >=0.0.28a4 +ovos_workshop~=0.0, >=0.0.11a4 \ No newline at end of file