From 78d196c4dfbc85ee3ad53df286aaeabb3ce9542f Mon Sep 17 00:00:00 2001 From: Blacktwin Date: Wed, 26 Sep 2018 16:08:29 -0400 Subject: [PATCH] remove unshare function --- killstream/limiterr.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/killstream/limiterr.py b/killstream/limiterr.py index dd72522..d1a4ad0 100644 --- a/killstream/limiterr.py +++ b/killstream/limiterr.py @@ -257,12 +257,6 @@ def arg_decoding(arg): return arg.decode(TAUTULLI_ENCODING).encode('UTF-8') -def unshare(user): - print('{user} has reached their limit. Unsharing...'.format(user=user)) - plex.myPlexAccount().updateFriend(user=user, server=plex, removeSections=True, sections='2') - print('Unshared all libraries from {user}.'.format(user=user)) - - if __name__ == "__main__": parser = argparse.ArgumentParser( description="Limiting Plex users by plays, watches, or total time from Tautulli.")