That's what happens when you write stuff late at night, sounds good in my head, but not so much for everyone else.
My original play episode command was built off episode name. And works well for the most part.
As my collection has grown I'm experiencing some similarities between names and occasionally getting the wrong episode. In reality, I can live with that.
However, as I like a challenge, I'd like to try build a different way. It would be nice to play an episode by its number, rather than name. Eg:
Game of Thrones, Season 2, Episode 8.
Kodi (Xbmc) uses unique episodeid from the database to play the episodes. This id is in no way related to 'Episode 8'
As none of the above are unique in them self they can't retrieve the ' episodeid'
But if you use tv show title as a filter it narrows it down. Each show only has one 'season 2' and each season only has one 'Episode 8', combined the statement is unique. Resulting in one 'episodeid' being send to the player.
So a 4 table payload would be cool. Three phases and one value.
Retrieving a tv show title and season from Kodi is pretty easy, but to get a episodeid from an Episode numbers specific to a season which is specific to a tv show title is where the fun part is.
As I said, it's just an idea that would be cool. And I enjoy a challenge.