forked from j62/ctbrec
1
0
Fork 0

Remove playlistUrl check from isOnline

isOnline contained a check for playlistUrl != null, because sometimes
the playlistUrl is null even though the model is online, but it prevents
the followed tab from working correctly
This commit is contained in:
0xboobface 2018-12-12 22:05:46 +01:00
parent 5c4125c03e
commit 8039359455
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,6 @@ import com.iheartradio.m3u8.data.PlaylistData;
import ctbrec.AbstractModel;
import ctbrec.Config;
import ctbrec.StringUtil;
import ctbrec.io.HtmlParser;
import ctbrec.io.HttpException;
import ctbrec.recorder.download.StreamSource;
@ -53,7 +52,8 @@ public class Cam4Model extends AbstractModel {
return false;
}
}
return onlineState == ONLINE && StringUtil.isNotBlank(playlistUrl) && !privateRoom;
LOG.debug("{} state:{} playlistUrl:{} private:{}", getName(), onlineState, playlistUrl != null, privateRoom);
return onlineState == ONLINE && !privateRoom;
}
private void loadModelDetails() throws IOException, ModelDetailsEmptyException {