jfoenix 9.0.3 -> 9.0.4
This commit is contained in:
parent
48b9c99baa
commit
402a004ef6
2
pom.xml
2
pom.xml
|
@ -32,7 +32,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.jfoenix</groupId>
|
<groupId>com.jfoenix</groupId>
|
||||||
<artifactId>jfoenix</artifactId>
|
<artifactId>jfoenix</artifactId>
|
||||||
<version>9.0.3</version>
|
<version>9.0.4</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
|
@ -615,8 +615,8 @@ public class DBController {
|
||||||
try {
|
try {
|
||||||
mainWindowController.getPosterImageView().setImage(new Image(new File(rs.getString("Poster")).toURI().toString()));
|
mainWindowController.getPosterImageView().setImage(new Image(new File(rs.getString("Poster")).toURI().toString()));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
mainWindowController.getPosterImageView().setImage(new Image("resources/icons/close_black_2048x2048.png"));
|
mainWindowController.getPosterImageView().setImage(new Image("icons/close_black_2048x2048.png"));
|
||||||
LOGGER.error(e);
|
LOGGER.error("No Poster found, useing default.");
|
||||||
}
|
}
|
||||||
|
|
||||||
stmt.close();
|
stmt.close();
|
||||||
|
|
|
@ -110,7 +110,7 @@ public class OMDbAPIController implements Runnable {
|
||||||
try {
|
try {
|
||||||
BufferedImage originalImage = ImageIO.read(new URL(object.getString("Poster", "")));
|
BufferedImage originalImage = ImageIO.read(new URL(object.getString("Poster", "")));
|
||||||
// change path to where file is located
|
// change path to where file is located
|
||||||
omdbResponse.setPoster(main.getPosterCache() + "/" + mainWindowController.getCurrentTitle() + ".png");
|
omdbResponse.setPoster(main.getPosterCache() + "/" + omdbResponse.getTitle() + ".png");
|
||||||
ImageIO.write(originalImage, "png", new File(omdbResponse.getPoster()));
|
ImageIO.write(originalImage, "png", new File(omdbResponse.getPoster()));
|
||||||
LOGGER.info("adding poster to cache: " + omdbResponse.getPoster());
|
LOGGER.info("adding poster to cache: " + omdbResponse.getPoster());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
@ -146,6 +146,7 @@ public class OMDbAPIController implements Runnable {
|
||||||
BufferedReader ina = new BufferedReader(new InputStreamReader(apiUrl.openStream()));
|
BufferedReader ina = new BufferedReader(new InputStreamReader(apiUrl.openStream()));
|
||||||
output = ina.readLine();
|
output = ina.readLine();
|
||||||
ina.close();
|
ina.close();
|
||||||
|
System.out.println(apiUrl.toString());
|
||||||
LOGGER.info("response from '" + URL + "&t=" + title + "' was:" + output);
|
LOGGER.info("response from '" + URL + "&t=" + title + "' was:" + output);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
LOGGER.error("error while making api request or reading response");
|
LOGGER.error("error while making api request or reading response");
|
||||||
|
@ -156,6 +157,11 @@ public class OMDbAPIController implements Runnable {
|
||||||
return Json.parse(output).asObject();
|
return Json.parse(output).asObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** TODO if responser == false & isSereis, query without series
|
||||||
|
* search for a movie/series title
|
||||||
|
* @param title the movie/series title
|
||||||
|
* @return the correct title if found
|
||||||
|
*/
|
||||||
private String searchByTitle(String title) {
|
private String searchByTitle(String title) {
|
||||||
String output = null;
|
String output = null;
|
||||||
// if the movie was not found try to search it
|
// if the movie was not found try to search it
|
||||||
|
|
Loading…
Reference in New Issue