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

@ -14,6 +14,9 @@ class OmbiAPI(object):
self.session = Session()
self.session.headers = {'Apikey': self.server.api_key}
def __repr__(self):
return "<ombi-{}>".format(self.server.id)
def get_total_requests(self):
self.now = datetime.now(timezone.utc).astimezone().isoformat()
tv_endpoint = '/api/v1/Request/tv'