Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with PMS >= 1.3.2.3112 #18

Closed
jannislehmann opened this issue Dec 10, 2016 · 4 comments
Closed

Doesn't work with PMS >= 1.3.2.3112 #18

jannislehmann opened this issue Dec 10, 2016 · 4 comments
Assignees

Comments

@jannislehmann
Copy link

Since the latest update, the script does no longer work.

I am getting the following error when I execute ./plex.py --movies --shows --episodes 127.0.0.1 32400 SECRET_TOKEN

  File "./plex.py", line 329, in <module>
    get_metrics(collectd=False)
  File "./plex.py", line 34, in get_metrics
    sections = get_sections()
  File "./plex.py", line 134, in get_sections
    for section in sectionobject['MediaContainer']['Metadata']:
KeyError: 'Metadata'```

If you need any additional information, feel free to tell me.

OS: Ubuntu 16.04
Python version ~2.7
@rickatnight11 rickatnight11 self-assigned this Dec 12, 2016
@rickatnight11
Copy link
Owner

Confirmed after upgrading from 1.3.0.3059 to 1.3.2.3112. Most likely the API changed a bit again. Taking a look...

@rickatnight11
Copy link
Owner

Confirmed and should be fixed in #19. Give that branch a shot and let me know!

@jannislehmann
Copy link
Author

Seems to be working again.
Thanks for your fast response!

rickatnight11 added a commit that referenced this issue Dec 12, 2016
Fix support for 1.3.2.3112 API changes (fixed #18)
@ghost
Copy link

ghost commented Dec 13, 2016

Confirmed it works on CentOS 7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants