Fix MVLive models being detected as online while being offline
This commit is contained in:
parent
086e15578f
commit
8fa785862b
|
@ -1,6 +1,7 @@
|
||||||
3.10.10
|
3.10.10
|
||||||
========================
|
========================
|
||||||
* Fixed MVLive recordings once again
|
* Fixed MVLive recordings once again
|
||||||
|
* Fixed MVLive models being detected as online while being offline
|
||||||
* Fix: "Check URLs" button stays inactive after the first run
|
* Fix: "Check URLs" button stays inactive after the first run
|
||||||
* Fix: recordings for some Cam4 models still didn't start
|
* Fix: recordings for some Cam4 models still didn't start
|
||||||
* Added "space used" to recordings tab
|
* Added "space used" to recordings tab
|
||||||
|
|
|
@ -51,6 +51,7 @@ public class MVLiveModel extends AbstractModel {
|
||||||
@Override
|
@Override
|
||||||
public boolean isOnline(boolean ignoreCache) throws IOException, ExecutionException, InterruptedException {
|
public boolean isOnline(boolean ignoreCache) throws IOException, ExecutionException, InterruptedException {
|
||||||
if (ignoreCache) {
|
if (ignoreCache) {
|
||||||
|
boolean modelFound = false;
|
||||||
MVLive site = (MVLive) getSite();
|
MVLive site = (MVLive) getSite();
|
||||||
for (Model model : site.getModels()) {
|
for (Model model : site.getModels()) {
|
||||||
if (model.getName().equalsIgnoreCase(getName()) || model.getDisplayName().equalsIgnoreCase(getName())) {
|
if (model.getName().equalsIgnoreCase(getName()) || model.getDisplayName().equalsIgnoreCase(getName())) {
|
||||||
|
@ -58,9 +59,13 @@ public class MVLiveModel extends AbstractModel {
|
||||||
setName(model.getName());
|
setName(model.getName());
|
||||||
setDisplayName(model.getDisplayName());
|
setDisplayName(model.getDisplayName());
|
||||||
setUrl(model.getUrl());
|
setUrl(model.getUrl());
|
||||||
|
modelFound = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!modelFound) {
|
||||||
|
this.onlineState = OFFLINE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return this.onlineState == ONLINE;
|
return this.onlineState == ONLINE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue