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

PlexUpdate plugin updated for Plex Home #1494

Merged
merged 4 commits into from Jun 4, 2015
Merged

PlexUpdate plugin updated for Plex Home #1494

merged 4 commits into from Jun 4, 2015

Conversation

edcarroll
Copy link

Updated the PlexUpdate plugin to allow Plex Tokens to be provided with the
server details so that beets can update a Plex library that requires
authentication.

PlexUpdate plugin updated to allow Plex Tokens to be provided with the
server details so that beets can update a Plex library that requires
authentication.
"""Appends the Plex Home token to the api call if required.
"""
if token:
url += '?X-Plex-Token={0}'.format(token)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For safety, it's probably best to use:

url += '?' + urllib.encode({'X-Plex-Token': token'})

@sampsyo
Copy link
Member

sampsyo commented Jun 4, 2015

Looks great, modulo the one small suggestion above! Would you mind adding to the documentation for the plugin (and a changelog entry)?

Updated the append function to be a bit safer when adding the token
parameter. Updated docs and changelog
@edcarroll
Copy link
Author

No problem - included your suggestion and updated the docs :)

@sampsyo
Copy link
Member

sampsyo commented Jun 4, 2015

Awesome. Thank you for adding this! ✨

@sampsyo sampsyo merged commit 865fb0a into beetbox:master Jun 4, 2015
sampsyo added a commit that referenced this pull request Jun 4, 2015
PlexUpdate plugin updated for Plex Home
sampsyo added a commit that referenced this pull request Jun 4, 2015
LordSputnik pushed a commit to LordSputnik/beets that referenced this pull request Jul 6, 2015
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

Successfully merging this pull request may close these issues.

None yet

2 participants