Skip to content

Commit 0cf602f

Browse files
committed
Set timeout value to 8
2 parents 5cdf553 + d49284c commit 0cf602f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pytautulli/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,21 @@
1313

1414

1515
_LOGGER = logging.getLogger(__name__)
16-
_BASE_URL = '{schema}://{host}:{port}/api/v2?apikey={api_key}&cmd='
16+
_BASE_URL = '{schema}://{host}:{port}{path}/api/v2?apikey={api_key}&cmd='
1717

1818

1919
class Tautulli(object):
2020
"""A class for handling connections with a Tautulli instance."""
2121

22-
def __init__(self, host, port, api_key, loop, session, ssl=False):
22+
def __init__(self, host, port, api_key, loop, session, ssl=False, path=""):
2323
"""Initialize the connection to a Tautulli instance."""
2424
self._loop = loop
2525
self._session = session
2626
self.api_key = api_key
2727
self.schema = 'https' if ssl else 'http'
2828
self.host = host
2929
self.port = port
30+
self.path = path
3031
self.connection = None
3132
self.tautulli_session_data = {}
3233
self.tautulli_home_data = {}
@@ -35,6 +36,7 @@ def __init__(self, host, port, api_key, loop, session, ssl=False):
3536
self.base_url = _BASE_URL.format(schema=self.schema,
3637
host=self.host,
3738
port=self.port,
39+
path=self.path,
3840
api_key=self.api_key)
3941

4042
async def test_connection(self):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
LONG = fh.read()
66
setuptools.setup(
77
name="pytautulli",
8-
version='0.4.2',
8+
version='0.5.1',
99
author="Joakim Sorensen",
1010
author_email="[email protected]",
1111
description="",

0 commit comments

Comments
 (0)