forked from j62/ctbrec
Fix use the stripchat user name instead of the chaturbate user name for
the credential check
This commit is contained in:
parent
8b66dce61a
commit
0430cc07a3
|
@ -15,7 +15,6 @@ import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
import ctbrec.Config;
|
import ctbrec.Config;
|
||||||
import ctbrec.Model;
|
import ctbrec.Model;
|
||||||
import ctbrec.StringUtil;
|
|
||||||
import ctbrec.io.HttpException;
|
import ctbrec.io.HttpException;
|
||||||
import ctbrec.sites.stripchat.Stripchat;
|
import ctbrec.sites.stripchat.Stripchat;
|
||||||
import ctbrec.sites.stripchat.StripchatModel;
|
import ctbrec.sites.stripchat.StripchatModel;
|
||||||
|
@ -46,7 +45,7 @@ public class StripchatUpdateService extends PaginatedScheduledService {
|
||||||
@Override
|
@Override
|
||||||
public List<Model> call() throws IOException {
|
public List<Model> call() throws IOException {
|
||||||
List<Model> models = new ArrayList<>();
|
List<Model> models = new ArrayList<>();
|
||||||
if(loginRequired && StringUtil.isBlank(ctbrec.Config.getInstance().getSettings().username)) {
|
if(loginRequired && !stripchat.credentialsAvailable()) {
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
} else {
|
} else {
|
||||||
int offset = (getPage() - 1) * modelsPerPage;
|
int offset = (getPage() - 1) * modelsPerPage;
|
||||||
|
|
Loading…
Reference in New Issue