HTTP Requests lead to Plugin-crashing?

Hello...

trying to understand the PMS communication I am shooting HTTP requests against it.

Things look quite good, for example i get the following "talk":

 

*** request

http://192.168.178.20:32400/channels/

*** reply

xmlIOHTTP - bytes read: 178

<?xml version="1.0" encoding="UTF-8"?>

 

Digging deeper however, I read back the following:

 

*** request

http://192.168.178.20:32400/video/abc

*** reply

xmlIOHTTP - bytes read: 934

<?xml version='1.0' encoding='utf-8'?>

  Traceback (most recent call last):

  File "/Users/baa/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 822, in handle_request

    result = f(**d)

  File "/Users/baa/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/handlers/base.py", line 119, in call

    result = self.func(*args, **kwargs)

  File "/Users/baa/Library/Application Support/Plex Media Server/Plug-ins/ABC.bundle/Contents/Code/__init__.py", line 23, in MainMenu

    if not Client.Platform in ('iOS') and not (Client.Platform == 'Safari' and Platform.OS == 'MacOSX'):

TypeError: 'in <string>' requires string as left operand

 
...somehow indicating, that my plugin kind of crashed.
Same message is shown in plugin's log as well ("CRITICAL EXCEPTION"), the PMS log however is clean.
Is there anything I forgot to set up in order to keep the plugins happy???

...somehow indicating, that my plugin kind of crashed.

The plugin errored because the value of Client.Platform is None when you browse the XML data like you are doing. This has just been fixed.

... you browse the XML data like you are doing. ...

Thanks for the fix. But how am I supposed to browse PMS? Isn't this the way everyone does?

I guess, I am confused...

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.