skylex/xbmc-betaseries — pull request #3 by spdy (2014-10-16 06:15:57+00:00)
Title: Fix for PlexBMC extension

When using an extension such as PleXBMC that only stream content and don't store anything on the current XBMC you dont have any tvshowid for the item you are watching.
So when you do this request `{"jsonrpc": "2.0", "method": "Player.GetItem", "params": {"playerid": ' + str(playerid) + ', "properties": ["tvshowid"]}, "id": 1}` the tvshowid resulting is -1.
And then GetTVShowDetails can't find any episode matching the request.
The error in the log is saying that `url` is not set (line 137) and the extension is throwing an error to the GUI.
To fix this kind of problem (streamed content with no tvshowid) I search the show with the BetaSeries API then I get the tvdb_id (instead of looking in XBMC metadata).
I've tested my code with complex TV show names and also show with different UK and US version, it has worked for all of them.
This fix has been test on Openelec 4.2 and XBMC 13.2.