fixed clean_check of server_ids, fixed under-indented radarr get_movie,
and added __repr__ for cleaner logging
This commit is contained in:
parent
87fea6db06
commit
18a5fdacba
8 changed files with 50 additions and 17 deletions
|
@ -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'}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue