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
|
@ -16,6 +16,9 @@ class SonarrAPI(object):
|
|||
self.session.headers = {'X-Api-Key': self.server.api_key}
|
||||
self.session.params = {'pageSize': 1000}
|
||||
|
||||
def __repr__(self):
|
||||
return "<sonarr-{}>".format(self.server.id)
|
||||
|
||||
def get_missing(self):
|
||||
endpoint = '/api/calendar'
|
||||
last_days = str(date.today() + timedelta(days=-self.server.missing_days))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue