Use proxy for config call

master
Omertron 14 years ago
parent 5dadce92c9
commit f43b0d7e94

@ -74,7 +74,8 @@ public class TheMovieDb {
public TheMovieDb(String apiKey) throws IOException { public TheMovieDb(String apiKey) throws IOException {
this.apiKey = apiKey; this.apiKey = apiKey;
URL configUrl = tmdbConfigUrl.getQueryUrl(""); URL configUrl = tmdbConfigUrl.getQueryUrl("");
WrapperConfig wc = mapper.readValue(configUrl, WrapperConfig.class); String webPage = WebBrowser.request(configUrl);
WrapperConfig wc = mapper.readValue(webPage, WrapperConfig.class);
tmdbConfig = wc.getTmdbConfiguration(); tmdbConfig = wc.getTmdbConfiguration();
FilteringLayout.addApiKey(apiKey); FilteringLayout.addApiKey(apiKey);
} }

Loading…
Cancel
Save