m0ngr31 / kanzi

Alexa skill for controlling Kodi
https://lexigr.am
MIT License
427 stars 149 forks source link

Play the next movie in a collection #221

Open jingai opened 7 years ago

jingai commented 7 years ago

It would be nice to be able to say something like:

Alexa, ask Kodi to play the next Harry Potter movie

I'm pretty sure this would depend on movies being in collections, since we'd have to match "Harry Potter" as a substring for a collection of movies.

simonrb2000 commented 7 years ago

Like this

jingai commented 7 years ago

The biggest hurdle I see with this is that sets don't necessarily have to have a specific naming convention.

With the scraper I use, I generally end up with set labels like, "Harry Potter Collection," but we cannot depend on that convention because a) the user can edit the set labels to make them whatever they like, and b) different scrapers can choose whatever format they like.

The problem here is that we need to match the heard string ("harry potter") against the set name. If we don't know what to strip out of the set names, then we won't be able to match with confidence.