From f9f4b80b2beb1a84d08421a39884f40fe6e43ac2 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Mon, 11 Sep 2017 22:43:52 -0400 Subject: [PATCH] camelCase formating removeSections instead of remove_sections. update the doc string. --- plexapi/myplex.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plexapi/myplex.py b/plexapi/myplex.py index aac91f0b..b9099abd 100644 --- a/plexapi/myplex.py +++ b/plexapi/myplex.py @@ -216,7 +216,7 @@ class MyPlexAccount(PlexObject): url = url.format(userId=user.id) return self.query(url, self._session.delete) - def updateFriend(self, user, server, sections=None, remove_sections=False, allowSync=False, allowCameraUpload=False, + def updateFriend(self, user, server, sections=None, removeSections=False, allowSync=False, allowCameraUpload=False, allowChannels=False, filterMovies=None, filterTelevision=None, filterMusic=None): """ Update the specified user's share settings. @@ -224,6 +224,7 @@ class MyPlexAccount(PlexObject): user (str): MyPlexUser, username, email of the user to be added. server (PlexServer): PlexServer object or machineIdentifier containing the library sections to share. sections: ([Section]): Library sections, names or ids to be shared (default None shares all sections). + removeSections (Bool): Set True to remove all shares. allowSync (Bool): Set True to allow user to sync content. allowCameraUpload (Bool): Set True to allow user to upload photos. allowChannels (Bool): Set True to allow user to utilize installed channels. @@ -251,7 +252,7 @@ class MyPlexAccount(PlexObject): url = self.FRIENDINVITE.format(machineId=machineId) # Remove share sections, add shares to user without shares, or update shares - if remove_sections: + if removeSections: response_servers = self.query(url, self._session.delete, json=params, headers=headers) elif 'invited_id' in params['shared_server']: response_servers = self.query(url, self._session.post, json=params, headers=headers)