fix typo in SeriesDVEpisode class name
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Jannik 2022-02-06 19:12:17 +01:00
parent d167b60661
commit 9b5fdaa418
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
4 changed files with 10 additions and 12 deletions

View File

@ -106,7 +106,7 @@ public class MainWindowController {
private String btnStyle;
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() {
// the constructor
@ -158,7 +158,7 @@ public class MainWindowController {
// general actions
HamburgerBackArrowBasicTransition burgerTask = new HamburgerBackArrowBasicTransition(menuHam);
menuHam.addEventHandler(MouseEvent.MOUSE_PRESSED, (e) -> {
menuHam.addEventHandler(MouseEvent.MOUSE_PRESSED, e -> {
if (menuTrue) {
sideMenuSlideOut();
@ -380,7 +380,7 @@ public class MainWindowController {
LOGGER.error(e);
}
System.out.println("finished refresh");
LOGGER.info("finished refresh");
}
/**
@ -393,7 +393,7 @@ public class MainWindowController {
// add button onAction
for (PosterModeElement element : posterEmenents) {
element.getButton().addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {
element.getButton().addEventHandler(MouseEvent.MOUSE_CLICKED, event -> {
enableBlur(); // blur the FlowPane
// 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().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();

View File

@ -31,7 +31,7 @@ import org.apache.logging.log4j.Logger;
import org.mosad.homeflix.controller.DBController;
import org.mosad.homeflix.controller.XMLController;
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 com.jfoenix.controls.JFXButton;
@ -205,7 +205,7 @@ public class SeriesDetailView extends DetailView {
} catch (Exception e) {
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));
}
}

View File

@ -8,13 +8,13 @@ import javafx.scene.image.ImageView;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.AnchorPane;
public class SeriresDVEpisode extends AnchorPane {
public class SeriesDVEpisode extends AnchorPane {
private String streamURL;
private Label label = new Label();
private ImageView imageView = new ImageView();
public SeriresDVEpisode() {
public SeriesDVEpisode() {
super.getChildren().addAll(imageView, label);
super.prefWidth(200);
super.prefHeight(112);
@ -28,7 +28,7 @@ public class SeriresDVEpisode extends AnchorPane {
super.setLeftAnchor(label, 7.0);
}
public SeriresDVEpisode(String streamURL, String episode, Image poster) {
public SeriesDVEpisode(String streamURL, String episode, Image poster) {
this();
this.streamURL = streamURL;