Skip to content

Commit

Permalink
modernize/skill_init
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed May 24, 2024
1 parent 24a414c commit 505097f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
from os.path import join, dirname

from ovos_workshop.skills.common_play import OVOSCommonPlaybackSkill, \
MediaType, PlaybackType, ocp_search, ocp_featured_media

from ovos_utils.ocp import MediaType, PlaybackType
from ovos_workshop.decorators import ocp_search, ocp_featured_media
from ovos_workshop.skills.common_play import OVOSCommonPlaybackSkill
from tunein import TuneIn


class TuneInSkill(OVOSCommonPlaybackSkill):
def __init__(self, *args, **kwargs):
self.supported_media = [MediaType.RADIO]
self.skill_icon = join(dirname(__file__), "res", "tunein.png")
super().__init__(*args, **kwargs)
super().__init__(supported_media = [MediaType.RADIO],
skill_icon=join(dirname(__file__), "res", "tunein.png"),
*args, **kwargs)

@ocp_featured_media()
def featured_media(self):
Expand Down

0 comments on commit 505097f

Please sign in to comment.