removed the usage of mwc in omdbAPIQuery
This commit is contained in:
@ -155,7 +155,6 @@ public class MainWindowController {
|
||||
private Main main;
|
||||
private MainWindowController mainWindowController;
|
||||
private UpdateController updateController;
|
||||
private OMDbAPIController omdbAPIController;
|
||||
private DBController dbController;
|
||||
private static final Logger LOGGER = LogManager.getLogger(MainWindowController.class.getName());
|
||||
|
||||
@ -166,7 +165,7 @@ public class MainWindowController {
|
||||
private boolean autoplay = false;
|
||||
|
||||
private final String version = "0.7.0";
|
||||
private final String buildNumber = "157";
|
||||
private final String buildNumber = "159";
|
||||
private final String versionName = "toothless dragon";
|
||||
private String btnStyle;
|
||||
private String color;
|
||||
@ -198,8 +197,7 @@ public class MainWindowController {
|
||||
public MainWindowController(Main main) {
|
||||
this.main = main;
|
||||
mainWindowController = this;
|
||||
dbController = new DBController(this.main, this);
|
||||
omdbAPIController = new OMDbAPIController(this, dbController, this.main);
|
||||
dbController = new DBController(this.main, this);
|
||||
}
|
||||
|
||||
@FXML
|
||||
@ -440,11 +438,10 @@ public class MainWindowController {
|
||||
if (currentTableFilm.getCached() || dbController.searchCacheByURL(getCurrentStreamUrl())) {
|
||||
LOGGER.info("loading from cache: " + getCurrentTitle());
|
||||
dbController.readCache(getCurrentStreamUrl());
|
||||
} else {
|
||||
omdbAPIController = new OMDbAPIController(mainWindowController, dbController, main);
|
||||
Thread omdbAPIThread = new Thread(omdbAPIController);
|
||||
} else {
|
||||
Thread omdbAPIThread = new Thread(new OMDbAPIController(main, dbController, currentTableFilm, omdbAPIKey));
|
||||
omdbAPIThread.setName("OMDbAPI");
|
||||
omdbAPIThread.start();
|
||||
omdbAPIThread.start();
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -818,6 +815,10 @@ public class MainWindowController {
|
||||
// TODO get all needed posters eg cache all not cached entries
|
||||
// TODO for entries not available show homeflix logo
|
||||
}
|
||||
|
||||
// Thread omdbAPIThread = new Thread(new OMDbAPIController(main, dbController, currentTableFilm, omdbAPIKey));
|
||||
// omdbAPIThread.setName("OMDbAPI");
|
||||
// omdbAPIThread.start();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user