Skip to content

Commit

Permalink
Deprecate create_skill method and update __init__ for best practi…
Browse files Browse the repository at this point in the history
…ces (#19)
  • Loading branch information
NeonDaniel authored Jun 15, 2023
1 parent 115c7ab commit 012473c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@


class FreeMusicArchiveSkill(OVOSCommonPlaybackSkill):
def __init__(self):
super(FreeMusicArchiveSkill, self).__init__()
def __init__(self, **kwargs):
OVOSCommonPlaybackSkill.__init__(self, **kwargs)
self.supported_media = [MediaType.MUSIC,
MediaType.AUDIO,
MediaType.GENERIC]
Expand Down Expand Up @@ -132,7 +132,3 @@ def search_fma(self, phrase, media_type=MediaType.GENERIC) -> List[dict]:
} for song in songs]
LOG.info(f"Returning {len(results)} results with confidence {score}")
return results


def create_skill():
return FreeMusicArchiveSkill()

0 comments on commit 012473c

Please sign in to comment.