diff --git a/common/src/main/java/ctbrec/sites/showup/ShowupModel.java b/common/src/main/java/ctbrec/sites/showup/ShowupModel.java index 37b973da..66fb326f 100644 --- a/common/src/main/java/ctbrec/sites/showup/ShowupModel.java +++ b/common/src/main/java/ctbrec/sites/showup/ShowupModel.java @@ -31,14 +31,23 @@ public class ShowupModel extends AbstractModel { @Override public boolean isOnline(boolean ignoreCache) throws IOException, ExecutionException, InterruptedException { - if(ignoreCache) { + if (ignoreCache) { + boolean foundInList = false; List modelList = getShowupSite().getModelList(); for (Model model : modelList) { ShowupModel m = (ShowupModel) model; if (m.getUid() == uid) { setOnlineState(m.getOnlineState(false)); + setStreamId(m.getStreamId()); + setStreamTranscoderAddr(m.getStreamTranscoderAddr()); + setDescription(m.getDescription()); + setPreview(m.getPreview()); + foundInList = true; } } + if (!foundInList) { + setOnlineState(State.OFFLINE); + } } State state = getOnlineState(true); return state == ONLINE || state == GROUP || state == PRIVATE;