This commit is contained in:
0xboobface 2018-08-13 18:29:13 +02:00
parent 16efe49324
commit e00c653c23
2 changed files with 8 additions and 1 deletions

View File

@ -341,6 +341,7 @@ public class ThumbCell extends StackPane {
};
private void startPlayer() {
// TODO if manual choice of stream quality is enabled, do the same thing as starting a download here
try {
StreamInfo streamInfo = Chaturbate.getStreamInfo(model, client);
if(streamInfo.room_status.equals("public")) {

View File

@ -2,6 +2,7 @@ package ctbrec.ui;
import java.io.IOException;
import java.net.SocketTimeoutException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
@ -226,7 +227,12 @@ public class ThumbOverviewTab extends Tab implements TabSelectionListener {
alert.setTitle("Error");
alert.setHeaderText("Couldn't fetch model list");
if(event.getSource().getException() != null) {
alert.setContentText(event.getSource().getException().getLocalizedMessage());
if(event.getSource().getException() instanceof SocketTimeoutException) {
LOG.debug("Fetching model list timed out");
return;
} else {
alert.setContentText(event.getSource().getException().getLocalizedMessage());
}
} else {
alert.setContentText(event.getEventType().toString());
}