fixed clean_check of server_ids, fixed under-indented radarr get_movie,

and added __repr__ for cleaner logging
This commit is contained in:
Nicholas St. Germain 2018-12-04 21:17:33 -06:00
parent 87fea6db06
commit 18a5fdacba
8 changed files with 50 additions and 17 deletions

View file

@ -19,6 +19,9 @@ class TautulliAPI(object):
self.session.params['apikey'] = self.server.api_key
self.endpoint = '/api/v2'
def __repr__(self):
return "<tautulli-{}>".format(self.server.id)
def get_activity(self):
self.now = datetime.now(timezone.utc).astimezone().isoformat()
params = {'cmd': 'get_activity'}