forked from j62/ctbrec
1
0
Fork 0

Set isOnline to false, of the model is not online

This commit is contained in:
0xboobface 2019-04-10 14:36:24 +02:00
parent 715b312774
commit 6c6fadd742
1 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,8 @@ public class BongaCamsModel extends AbstractModel {
JSONObject roomData = getRoomData();
String showType = roomData.getJSONObject("performerData").optString("showType");
online = Objects.equal(showType, "public") && isStreamAvailable();
} else {
online = false;
}
}
}