Fix model online check for BongaCams

This commit is contained in:
0xboobface 2019-06-02 16:51:07 +02:00
parent 43cfea36de
commit f2cae6a312
1 changed files with 2 additions and 2 deletions

View File

@ -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();