Browse Source

more code cleanup

pull/5/head
Jannik 4 years ago
parent
commit
1fca1c551d
  1. 14
      src/main/java/kellerkinder/HomeFlix/controller/UpdateController.java
  2. 2
      src/main/java/kellerkinder/HomeFlix/player/PlayerController.java

14
src/main/java/kellerkinder/HomeFlix/controller/UpdateController.java

@ -48,8 +48,10 @@ public class UpdateController implements Runnable {
private String buildNumber;
private String apiOutput;
private String updateBuildNumber; // tag_name from Github
// private String updateName;
// private String updateChanges;
@SuppressWarnings("unused")
private String updateName;
@SuppressWarnings("unused")
private String updateChanges;
private String browserDownloadUrl; // update download link
private String githubApiRelease = "https://api.github.com/repos/Seil0/Project-HomeFlix/releases/latest";
private String githubApiBeta = "https://api.github.com/repos/Seil0/Project-HomeFlix/releases";
@ -101,8 +103,8 @@ public class UpdateController implements Runnable {
JsonArray objectAssets = object.asObject().get("assets").asArray();
updateBuildNumber = object.asObject().getString("tag_name", "");
// updateName = object.asObject().getString("name", "");
// updateChanges = object.asObject().getString("body", "");
updateName = object.asObject().getString("name", "");
updateChanges = object.asObject().getString("body", "");
for (JsonValue asset : objectAssets) {
browserDownloadUrl = asset.asObject().getString("browser_download_url", "");
@ -113,8 +115,8 @@ public class UpdateController implements Runnable {
JsonArray objectAssets = Json.parse(apiOutput).asObject().get("assets").asArray();
updateBuildNumber = object.getString("tag_name", "");
// updateName = object.getString("name", "");
// updateChanges = object.getString("body", "");
updateName = object.getString("name", "");
updateChanges = object.getString("body", "");
for (JsonValue asset : objectAssets) {
browserDownloadUrl = asset.asObject().getString("browser_download_url", "");

2
src/main/java/kellerkinder/HomeFlix/player/PlayerController.java

@ -65,10 +65,8 @@ public class PlayerController {
@FXML
private JFXButton stopBtn;
@FXML
private JFXButton playBtn;
@FXML
private JFXButton fullscreenBtn;

Loading…
Cancel
Save

Du besuchst diese Seite mit einem veralteten IPv4-Internetzugang. Möglicherweise treten in Zukunft Probleme mit der Erreichbarkeit und Performance auf. Bitte frage deinen Internetanbieter oder Netzwerkadministrator nach IPv6-Unterstützung.
You are visiting this site with an outdated IPv4 internet access. You may experience problems with accessibility and performance in the future. Please ask your ISP or network administrator for IPv6 support.
Weitere Infos | More Information
Klicke zum schließen | Click to close