Fix getMovieAlternativeTitles not using the country correctly
This commit is contained in:
@@ -190,7 +190,7 @@ public class TheMovieDb {
|
||||
*/
|
||||
public List<AlternativeTitle> getMovieAlternativeTitles(int movieId, String country) throws MovieDbException {
|
||||
|
||||
URL url = tmdbMovieAltTitles.getIdUrl(movieId, country);
|
||||
URL url = tmdbMovieAltTitles.getIdUrl(movieId, ApiUrl.DEFAULT_STRING, country);
|
||||
String webPage = WebBrowser.request(url);
|
||||
try {
|
||||
WrapperAlternativeTitles at = mapper.readValue(webPage, WrapperAlternativeTitles.class);
|
||||
|
||||
@@ -45,8 +45,8 @@ public class ApiUrl {
|
||||
private static final String PARAMETER_LANGUAGE = DELIMITER_SUBSEQUENT + "language=";
|
||||
private static final String PARAMETER_COUNTRY = DELIMITER_SUBSEQUENT + "country=";
|
||||
private static final String PARAMETER_PAGE = DELIMITER_SUBSEQUENT + "page=";
|
||||
private static final String DEFAULT_STRING = "";
|
||||
private static final int DEFAULT_INT = -1;
|
||||
public static final String DEFAULT_STRING = "";
|
||||
public static final int DEFAULT_INT = -1;
|
||||
/*
|
||||
* Properties
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user