Fix model online check for BongaCams
This commit is contained in:
parent
43cfea36de
commit
f2cae6a312
|
@ -56,8 +56,8 @@ public class BongaCamsModel extends AbstractModel {
|
|||
try (Response resp = site.getHttpClient().execute(req)) {
|
||||
String body = resp.body().string();
|
||||
Element span = HtmlParser.getTag(body, "div.online_status_block span");
|
||||
String status = span.attr("class");
|
||||
if(Objects.equal(status, "online")) {
|
||||
String status = span.text();
|
||||
if(status.toLowerCase().contains("online")) {
|
||||
JSONObject roomData = getRoomData();
|
||||
String showType = roomData.getJSONObject("performerData").optString("showType");
|
||||
online = Objects.equal(showType, "public") && isStreamAvailable();
|
||||
|
|
Loading…
Reference in New Issue