Start work on providers configs

pull/292/head
Halali 6 years ago
parent 7cdf9fcc4e
commit ab4bbc35dd

@ -66,11 +66,15 @@ defaults = {
}, },
'opensubtitles': { 'opensubtitles': {
'username': '', 'username': '',
'password': '' 'password': '',
'vip': 'False',
'ssl': 'False',
'timeout': '15'
}, },
'addic7ed': { 'addic7ed': {
'username': '', 'username': '',
'password': '' 'password': '',
'random_agents': 'False'
}, },
'legendastv': { 'legendastv': {
'username': '', 'username': '',

@ -15,17 +15,19 @@ def get_providers():
def get_providers_auth(): def get_providers_auth():
providers_auth = { providers_auth = {
'addic7ed': { 'addic7ed': {'username': settings.addic7ed.username,
'username': settings.addic7ed.username, 'password': settings.addic7ed.password,
'password': settings.addic7ed.password, 'use_random_agents': settings.addic7ed.getboolean('random_agents'),
}, },
'opensubtitles': { 'opensubtitles': {'username': settings.opensubtitles.username,
'username': settings.opensubtitles.username, 'password': settings.opensubtitles.password,
'password': settings.opensubtitles.password, 'is_vip': settings.opensubtitles.getboolean('vip'),
}, 'use_ssl': settings.opensubtitles.getboolean('ssl'),
'legendastv': { 'timeout': int(settings.opensubtitles.timeout) or 15,
'username': settings.legendastv.username, },
'password': settings.legendastv.password, 'legendastv': {'username': settings.legendastv.username,
}} 'password': settings.legendastv.password,
}
}
return providers_auth return providers_auth

Loading…
Cancel
Save