mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 08:16:06 -07:00
Add PMS http request timeout an advanced setting in config file
This commit is contained in:
parent
a70817f421
commit
83b97111a0
2 changed files with 5 additions and 1 deletions
|
@ -47,6 +47,7 @@ _CONFIG_DEFINITIONS = {
|
||||||
'PMS_URL': (str, 'PMS', ''),
|
'PMS_URL': (str, 'PMS', ''),
|
||||||
'PMS_USE_BIF': (int, 'PMS', 0),
|
'PMS_USE_BIF': (int, 'PMS', 0),
|
||||||
'PMS_UUID': (str, 'PMS', ''),
|
'PMS_UUID': (str, 'PMS', ''),
|
||||||
|
'PMS_TIMEOUT': (int, 'Advanced', 15),
|
||||||
'TIME_FORMAT': (str, 'General', 'HH:mm'),
|
'TIME_FORMAT': (str, 'General', 'HH:mm'),
|
||||||
'ANON_REDIRECT': (str, 'General', 'http://dereferer.org/?'),
|
'ANON_REDIRECT': (str, 'General', 'http://dereferer.org/?'),
|
||||||
'API_ENABLED': (int, 'General', 0),
|
'API_ENABLED': (int, 'General', 0),
|
||||||
|
|
|
@ -48,7 +48,10 @@ class HTTPHandler(object):
|
||||||
output_format='raw',
|
output_format='raw',
|
||||||
return_type=False,
|
return_type=False,
|
||||||
no_token=False,
|
no_token=False,
|
||||||
timeout=20):
|
timeout=None):
|
||||||
|
|
||||||
|
if timeout is None:
|
||||||
|
timeout = plexpy.CONFIG.PMS_TIMEOUT
|
||||||
|
|
||||||
valid_request_types = ['GET', 'POST', 'PUT', 'DELETE']
|
valid_request_types = ['GET', 'POST', 'PUT', 'DELETE']
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue