Migrated tautulli.py and allowed for multiple servers
This commit is contained in:
parent
32b965edf8
commit
7638cd937e
8 changed files with 439 additions and 206 deletions
|
@ -9,13 +9,13 @@ from Varken.helpers import TVShow, Queue
|
|||
|
||||
|
||||
class SonarrAPI(object):
|
||||
def __init__(self, sonarr_servers, influx_server):
|
||||
def __init__(self, servers, influx_server):
|
||||
# Set Time of initialization
|
||||
self.now = datetime.now(timezone.utc).astimezone().isoformat()
|
||||
self.today = str(date.today())
|
||||
self.influx = InfluxDBClient(influx_server.url, influx_server.port, influx_server.username,
|
||||
influx_server.password, 'plex')
|
||||
self.servers = sonarr_servers
|
||||
self.servers = servers
|
||||
# Create session to reduce server web thread load, and globally define pageSize for all requests
|
||||
self.session = requests.Session()
|
||||
self.session.params = {'pageSize': 1000}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue