Update plex_api_share.py

This commit is contained in:
blacktwin 2017-09-29 15:23:08 -04:00 committed by GitHub
parent 044c6180e1
commit 584e813ae9

View File

@ -46,10 +46,7 @@ sections_lst = [x.title for x in plex.library.sections()]
def share(user, libraries):
plex.myPlexAccount().updateFriend(user=user, server=plex, sections=libraries)
if not libraries:
print('Shared all libraries with {user}.'.format(user=user))
else:
print('Shared libraries: {libraries} with {user}.'.format(libraries=libraries, user=user))
print('Shared libraries: {libraries} with {user}.'.format(libraries=libraries, user=user))
def unshare(user, libraries):