Fix Showup.tv loading of overviews and thumbnails
This commit is contained in:
parent
578a10a2b6
commit
67a8aa1b26
|
@ -9,7 +9,6 @@ import ctbrec.Model;
|
||||||
import ctbrec.io.HttpException;
|
import ctbrec.io.HttpException;
|
||||||
import ctbrec.recorder.Recorder;
|
import ctbrec.recorder.Recorder;
|
||||||
import ctbrec.ui.AutosizeAlert;
|
import ctbrec.ui.AutosizeAlert;
|
||||||
import ctbrec.ui.CamrecApplication;
|
|
||||||
import ctbrec.ui.Icon;
|
import ctbrec.ui.Icon;
|
||||||
import ctbrec.ui.SiteUiFactory;
|
import ctbrec.ui.SiteUiFactory;
|
||||||
import ctbrec.ui.action.EditGroupAction;
|
import ctbrec.ui.action.EditGroupAction;
|
||||||
|
@ -256,16 +255,9 @@ public class ThumbCell extends StackPane {
|
||||||
|
|
||||||
private void recordingInidicatorClicked(MouseEvent evt) {
|
private void recordingInidicatorClicked(MouseEvent evt) {
|
||||||
switch (modelRecordingState) {
|
switch (modelRecordingState) {
|
||||||
case RECORDING:
|
case RECORDING -> pauseResumeAction(true);
|
||||||
pauseResumeAction(true);
|
case PAUSED -> pauseResumeAction(false);
|
||||||
break;
|
case BOOKMARKED -> forgetModel();
|
||||||
case PAUSED:
|
|
||||||
pauseResumeAction(false);
|
|
||||||
break;
|
|
||||||
case BOOKMARKED:
|
|
||||||
forgetModel();
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -435,7 +427,7 @@ public class ThumbCell extends StackPane {
|
||||||
.header(USER_AGENT, Config.getInstance().getSettings().httpUserAgent)
|
.header(USER_AGENT, Config.getInstance().getSettings().httpUserAgent)
|
||||||
.header(REFERER, getModel().getSite().getBaseUrl())
|
.header(REFERER, getModel().getSite().getBaseUrl())
|
||||||
.build();
|
.build();
|
||||||
try (Response resp = CamrecApplication.httpClient.execute(req)) {
|
try (Response resp = model.getSite().getHttpClient().execute(req)) {
|
||||||
if (resp.isSuccessful()) {
|
if (resp.isSuccessful()) {
|
||||||
double width = 480;
|
double width = 480;
|
||||||
double height = width * imgAspectRatio;
|
double height = width * imgAspectRatio;
|
||||||
|
|
Loading…
Reference in New Issue