OpenVoiceOS / ovos-media

Apache License 2.0
1 stars 3 forks source link

update player.py to avoid no keyword arguments error #13

Closed mike99mac closed 6 months ago

mike99mac commented 7 months ago

ovos-media would not load. It was failing with the error:

 File "/home/pi/.venvs/ovos/lib/python3.11/site-packages/ovos_media/player.py", line 356, in __init__
    self.playlist: Playlist = Playlist("Search Results",
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/pi/.venvs/ovos/lib/python3.11/site-packages/ovos_utils/ocp.py", line 268, in __init__
    super().__init__(**kwargs)
TypeError: list() takes no keyword arguments

This fix removes the skill_id="" arg.

mike99mac commented 6 months ago

Thank you!