#125 removing else
This commit is contained in:
parent
e2475fae3b
commit
baa687355f
@ -123,17 +123,16 @@ def main():
|
|||||||
print('User: {} has records in Tautulli but does not exist in Plex.'.format(username))
|
print('User: {} has records in Tautulli but does not exist in Plex.'.format(username))
|
||||||
last_entry(last_seen, username)
|
last_entry(last_seen, username)
|
||||||
continue
|
continue
|
||||||
else:
|
# Only users that still exist in Plex will continue
|
||||||
# Only users that still exist in Plex will continue
|
if username not in USER_IGNORE:
|
||||||
if username not in USER_IGNORE:
|
if last_seen > REMOVE_LIMIT:
|
||||||
if last_seen > REMOVE_LIMIT:
|
print('{} was last seen {} days ago. Removing.'.format(username, last_seen))
|
||||||
print('{} was last seen {} days ago. Removing.'.format(username, last_seen))
|
remove_friend(username)
|
||||||
remove_friend(username)
|
elif last_seen > UNSHARE_LIMIT:
|
||||||
elif last_seen > UNSHARE_LIMIT:
|
print('{} was last seen {} days ago. Unshsring.'.format(username, last_seen))
|
||||||
print('{} was last seen {} days ago. Unshsring.'.format(username, last_seen))
|
unshare(username)
|
||||||
unshare(username)
|
else:
|
||||||
else:
|
last_entry(last_seen, username)
|
||||||
last_entry(last_seen, username)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
Reference in New Issue
Block a user