2012-05-01 23:19:33,358 (bb0) : DEBUG (core:324) - Calling function ‘GetEpisodes’
2012-05-01 23:19:33,358 (10c0) : DEBUG (prefskit:320) - Loaded the user preferences for com.plexapp.plugins.efnet3
2012-05-01 23:19:33,358 (bb0) : CRITICAL (core:324) - Exception when calling function ‘GetEpisodes’ (most recent call last):
File “C:\Users\denisber\AppData\Local\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code.py”, line 698, in call_named_function
result = f(*args, **kwargs)
TypeError: GetEpisodes() got an unexpected keyword argument ‘query’
Can you please post all of your code (using pastebin.com or a smimilar service) so we can have a look at it? Especially interested in how the GetEpisodes() function looks.
This is bizarre (probably not what you wanted to hear!)
If other clients are behaving correctly, I’m tempted to blame the Roku client, but I’d like a bit more information about what’s going on so I can hopefully point the developer in the right direction. The “query” parameter is a result of some backwards compatibility code - older plug-ins would append search queries to the end of the function URLs as another path component (rather than appending &query=), so the framework is translating the last path component in that URL to the query argument.
Can you post the XML returned by your GetCategories function?
Seemed bizarre to me :) BTW replacing TVShowObject with DirectoryObject makes it work as expected.
I am not sure how to capture the xml that GetCategories returns (quite new to plex/pyton), can you describe how to do so?
That’s especially strange, since they’re both directory types It certainly points to a bug in the Roku code, though!
In the log, you can see the plug-in generating lines starting with “Handling request…” - this lets you know what path the client was requesting. You can view the XML in any web browser by hitting http://localhost:32400/(path from the log).
I have a similar error while trying to connect to TOU.TV from the Plex client on Roku and on Windows XP. Here is the extract from the log while using the windows client, the error is exactly the same with the Roku client.
I tried your suggestion of opening http://localhost:32400/video/TOU.TV/ with a browser as you suggested to madnut, and I get this:
When I use the full string IE9 gives me a 404 error and Safari shows a blank page.
I have truncated the function_args since it is a huge string of 30927 characters for the first one and 30927 characters for the second one.
The error in the plugin log indicates that the plugin isn’t able to find the relevant details about how to get the video stream. Most likely, the website has hanged somewhat and the plugin needs updating.
The size of the parameter is close to 30K, this makes me wonder if it can be a problem with some of the string manipulation that the plugin has to do.
By the way, the browsing of the channel content works, it is only when I actually request a video that the error occurs.
I did a bit of testing on other channels yesterday, and noticed that for the CBC channel, some videos work and some don't. I cannot recall which ones just now, but if that helps someone I can make notes the next time I try.