Fix use the stripchat user name instead of the chaturbate user name for

the credential check
This commit is contained in:
0xb00bface 2020-12-05 16:26:02 +01:00
parent 8b66dce61a
commit 0430cc07a3
1 changed files with 1 additions and 2 deletions

View File

@ -15,7 +15,6 @@ import org.slf4j.LoggerFactory;
import ctbrec.Config;
import ctbrec.Model;
import ctbrec.StringUtil;
import ctbrec.io.HttpException;
import ctbrec.sites.stripchat.Stripchat;
import ctbrec.sites.stripchat.StripchatModel;
@ -46,7 +45,7 @@ public class StripchatUpdateService extends PaginatedScheduledService {
@Override
public List<Model> call() throws IOException {
List<Model> models = new ArrayList<>();
if(loginRequired && StringUtil.isBlank(ctbrec.Config.getInstance().getSettings().username)) {
if(loginRequired && !stripchat.credentialsAvailable()) {
return Collections.emptyList();
} else {
int offset = (getPage() - 1) * modelsPerPage;