Merge branch 'autologin_config' of https://github.com/codesoap/rtv into codesoap-autologin_config

This commit is contained in:
Michael Lazar
2018-10-01 01:16:11 -04:00
3 changed files with 9 additions and 2 deletions

View File

@@ -202,7 +202,7 @@ def main():
# Authorize on launch if the refresh token is present
oauth = OAuthHelper(reddit, term, config)
if config.refresh_token:
if config['autologin'] and config.refresh_token:
oauth.authorize()
page = None