fix typo in SeriesDVEpisode class name
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
d167b60661
commit
9b5fdaa418
|
@ -106,7 +106,7 @@ public class MainWindowController {
|
||||||
private String btnStyle;
|
private String btnStyle;
|
||||||
|
|
||||||
private ObservableList<PosterModeElement> posterEmenents = FXCollections.observableArrayList();
|
private ObservableList<PosterModeElement> posterEmenents = FXCollections.observableArrayList();
|
||||||
private LocalDate lastValidCache = LocalDate.now().minusDays(30); // current date - 30 days is the last valid cache date
|
private final LocalDate lastValidCache = LocalDate.now().minusDays(30); // current date - 30 days is the last valid cache date
|
||||||
|
|
||||||
public MainWindowController() {
|
public MainWindowController() {
|
||||||
// the constructor
|
// the constructor
|
||||||
|
@ -158,7 +158,7 @@ public class MainWindowController {
|
||||||
|
|
||||||
// general actions
|
// general actions
|
||||||
HamburgerBackArrowBasicTransition burgerTask = new HamburgerBackArrowBasicTransition(menuHam);
|
HamburgerBackArrowBasicTransition burgerTask = new HamburgerBackArrowBasicTransition(menuHam);
|
||||||
menuHam.addEventHandler(MouseEvent.MOUSE_PRESSED, (e) -> {
|
menuHam.addEventHandler(MouseEvent.MOUSE_PRESSED, e -> {
|
||||||
|
|
||||||
if (menuTrue) {
|
if (menuTrue) {
|
||||||
sideMenuSlideOut();
|
sideMenuSlideOut();
|
||||||
|
@ -380,7 +380,7 @@ public class MainWindowController {
|
||||||
LOGGER.error(e);
|
LOGGER.error(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
System.out.println("finished refresh");
|
LOGGER.info("finished refresh");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -393,7 +393,7 @@ public class MainWindowController {
|
||||||
|
|
||||||
// add button onAction
|
// add button onAction
|
||||||
for (PosterModeElement element : posterEmenents) {
|
for (PosterModeElement element : posterEmenents) {
|
||||||
element.getButton().addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {
|
element.getButton().addEventHandler(MouseEvent.MOUSE_CLICKED, event -> {
|
||||||
enableBlur(); // blur the FlowPane
|
enableBlur(); // blur the FlowPane
|
||||||
|
|
||||||
// if the selected element is a file it's a film, else a series
|
// if the selected element is a file it's a film, else a series
|
||||||
|
@ -409,8 +409,6 @@ public class MainWindowController {
|
||||||
|
|
||||||
posterModeFlowPane.getChildren().clear(); // remove all GUIElements from the posterModeFlowPane
|
posterModeFlowPane.getChildren().clear(); // remove all GUIElements from the posterModeFlowPane
|
||||||
posterModeFlowPane.getChildren().addAll(posterEmenents); // add all films/series as new GUIElements to the posterModeFlowPane
|
posterModeFlowPane.getChildren().addAll(posterEmenents); // add all films/series as new GUIElements to the posterModeFlowPane
|
||||||
|
|
||||||
System.out.println("added gui elements");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO can this be done in dbController? with dbController.refreshDataBase();
|
// TODO can this be done in dbController? with dbController.refreshDataBase();
|
||||||
|
|
|
@ -31,7 +31,7 @@ import org.apache.logging.log4j.Logger;
|
||||||
import org.mosad.homeflix.controller.DBController;
|
import org.mosad.homeflix.controller.DBController;
|
||||||
import org.mosad.homeflix.controller.XMLController;
|
import org.mosad.homeflix.controller.XMLController;
|
||||||
import org.mosad.homeflix.datatypes.OMDbAPIResponseDataType;
|
import org.mosad.homeflix.datatypes.OMDbAPIResponseDataType;
|
||||||
import org.mosad.homeflix.datatypes.SeriresDVEpisode;
|
import org.mosad.homeflix.datatypes.SeriesDVEpisode;
|
||||||
import org.mosad.homeflix.player.Player;
|
import org.mosad.homeflix.player.Player;
|
||||||
|
|
||||||
import com.jfoenix.controls.JFXButton;
|
import com.jfoenix.controls.JFXButton;
|
||||||
|
@ -205,7 +205,7 @@ public class SeriesDetailView extends DetailView {
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
poster = new Image("icons/Homeflix_Poster.png");
|
poster = new Image("icons/Homeflix_Poster.png");
|
||||||
}
|
}
|
||||||
hBoxEpisodes.getChildren().add(new SeriresDVEpisode(episodePoster[0], episodePoster[1], poster));
|
hBoxEpisodes.getChildren().add(new SeriesDVEpisode(episodePoster[0], episodePoster[1], poster));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,13 +8,13 @@ import javafx.scene.image.ImageView;
|
||||||
import javafx.scene.input.MouseEvent;
|
import javafx.scene.input.MouseEvent;
|
||||||
import javafx.scene.layout.AnchorPane;
|
import javafx.scene.layout.AnchorPane;
|
||||||
|
|
||||||
public class SeriresDVEpisode extends AnchorPane {
|
public class SeriesDVEpisode extends AnchorPane {
|
||||||
|
|
||||||
private String streamURL;
|
private String streamURL;
|
||||||
private Label label = new Label();
|
private Label label = new Label();
|
||||||
private ImageView imageView = new ImageView();
|
private ImageView imageView = new ImageView();
|
||||||
|
|
||||||
public SeriresDVEpisode() {
|
public SeriesDVEpisode() {
|
||||||
super.getChildren().addAll(imageView, label);
|
super.getChildren().addAll(imageView, label);
|
||||||
super.prefWidth(200);
|
super.prefWidth(200);
|
||||||
super.prefHeight(112);
|
super.prefHeight(112);
|
||||||
|
@ -28,7 +28,7 @@ public class SeriresDVEpisode extends AnchorPane {
|
||||||
super.setLeftAnchor(label, 7.0);
|
super.setLeftAnchor(label, 7.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public SeriresDVEpisode(String streamURL, String episode, Image poster) {
|
public SeriesDVEpisode(String streamURL, String episode, Image poster) {
|
||||||
this();
|
this();
|
||||||
|
|
||||||
this.streamURL = streamURL;
|
this.streamURL = streamURL;
|
Loading…
Reference in New Issue