/** does the setup and login with settings credentials */ public boolean Login() { // TODO: when calling login, check for existing auth. on exception reauth ONCE TRAKT.setApiKey(CLIENT_ID); try { TRAKT.setLoginData(Globals.settings.getTraktUsername(), Globals.settings.getTraktPassword()); } catch (RetrofitError e) { handleRetrofitError(e); return false; } catch (LoginException e) { handleRetrofitError((RetrofitError) e.getCause()); return false; } catch (UnauthorizedException e) { handleRetrofitError((RetrofitError) e.getCause()); return false; } if (LOGGER.isTraceEnabled()) { // when we are on TRACE, show some Trakt debug settings... (need to set after login) TRAKT.setIsDebug(true); } return true; }