m0ngr31 / kodi-voice

Python library for interacting with Kodi (especially with Voice)
MIT License
19 stars 23 forks source link

Internal recommendations #19

Closed jingai closed 7 years ago

jingai commented 7 years ago

Remove script.skin.helper.widgets dependency and provide a similar implementation.

The biggest difference is that this doesn't filter on rating, but instead sorts on it, limits the number of items, and picks a random item from that. The benefit of doing it this way is that we always have something to recommend.

Additionally, this adds support for filtering recommendations on a supplied Genre.

Some refactoring was necessary, but will be beneficial in the long term. We can now provide alternate JSON parameters for the primary Get methods pretty easily.

Supports https://github.com/m0ngr31/kodi-alexa/pull/220