From 1db1edfb42e09e1641327ca31952e970e8e963a9 Mon Sep 17 00:00:00 2001 From: Ed Carroll Date: Thu, 4 Jun 2015 01:33:17 +0100 Subject: [PATCH] Fixed line lengths --- beetsplug/plexupdate.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/beetsplug/plexupdate.py b/beetsplug/plexupdate.py index b2743f515..480007d66 100644 --- a/beetsplug/plexupdate.py +++ b/beetsplug/plexupdate.py @@ -1,5 +1,6 @@ """Updates an Plex library whenever the beets library is changed. -For Plex home users ensure that the token is filled out with the Plex Token for your user. + +Plex Home users enter the Plex Token to enable updating. Put something like the following in your config.yaml to configure: plex: host: localhost @@ -37,7 +38,8 @@ def update_plex(host, port, token): """ # Getting section key and build url. section_key = get_music_section(host, port, token) - api_endpoint = append_token('library/sections/{0}/refresh'.format(section_key), token) + api_endpoint = 'library/sections/{0}/refresh'.format(section_key) + api_endpoint = append_token(api_endpoint, token) url = urljoin('http://{0}:{1}'.format(host, port), api_endpoint) # Sends request and returns requests object.