|
|
|
|
@ -227,7 +227,7 @@ public class TheMovieDbApi {
|
|
|
|
|
try {
|
|
|
|
|
return (new URL(sb.toString()));
|
|
|
|
|
} catch (MalformedURLException ex) {
|
|
|
|
|
LOG.warn("Failed to create image URL: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to create image URL: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.INVALID_URL, sb.toString(), ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -255,7 +255,7 @@ public class TheMovieDbApi {
|
|
|
|
|
try {
|
|
|
|
|
return mapper.readValue(webpage, TokenAuthorisation.class);
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get Authorisation Token: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get Authorisation Token: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.AUTHORISATION_FAILURE, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -283,7 +283,7 @@ public class TheMovieDbApi {
|
|
|
|
|
try {
|
|
|
|
|
return mapper.readValue(webpage, TokenSession.class);
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get Session Token: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get Session Token: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -311,7 +311,7 @@ public class TheMovieDbApi {
|
|
|
|
|
try {
|
|
|
|
|
return mapper.readValue(webpage, TokenSession.class);
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get Session Token: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get Session Token: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -345,7 +345,7 @@ public class TheMovieDbApi {
|
|
|
|
|
try {
|
|
|
|
|
return mapper.readValue(webpage, MovieDb.class);
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get movie info: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get movie info: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -373,7 +373,7 @@ public class TheMovieDbApi {
|
|
|
|
|
try {
|
|
|
|
|
return mapper.readValue(webpage, MovieDb.class);
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get movie info: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get movie info: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -399,7 +399,7 @@ public class TheMovieDbApi {
|
|
|
|
|
WrapperAlternativeTitles wrapper = mapper.readValue(webpage, WrapperAlternativeTitles.class);
|
|
|
|
|
return wrapper.getTitles();
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get movie alternative titles: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get movie alternative titles: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -439,7 +439,7 @@ public class TheMovieDbApi {
|
|
|
|
|
|
|
|
|
|
return people;
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get movie casts: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get movie casts: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -479,7 +479,7 @@ public class TheMovieDbApi {
|
|
|
|
|
|
|
|
|
|
return artwork;
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get movie images: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get movie images: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -503,7 +503,7 @@ public class TheMovieDbApi {
|
|
|
|
|
WrapperMovieKeywords wrapper = mapper.readValue(webpage, WrapperMovieKeywords.class);
|
|
|
|
|
return wrapper.getKeywords();
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get movie keywords: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get movie keywords: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -527,7 +527,7 @@ public class TheMovieDbApi {
|
|
|
|
|
WrapperReleaseInfo wrapper = mapper.readValue(webpage, WrapperReleaseInfo.class);
|
|
|
|
|
return wrapper.getCountries();
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get movie release information: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get movie release information: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -569,7 +569,7 @@ public class TheMovieDbApi {
|
|
|
|
|
}
|
|
|
|
|
return trailers;
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get movie trailers: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get movie trailers: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -591,7 +591,7 @@ public class TheMovieDbApi {
|
|
|
|
|
WrapperTranslations wrapper = mapper.readValue(webpage, WrapperTranslations.class);
|
|
|
|
|
return wrapper.getTranslations();
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get movie tranlations: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get movie tranlations: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -627,7 +627,7 @@ public class TheMovieDbApi {
|
|
|
|
|
WrapperMovie wrapper = mapper.readValue(webpage, WrapperMovie.class);
|
|
|
|
|
return wrapper.getMovies();
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get similar movies: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get similar movies: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -659,7 +659,7 @@ public class TheMovieDbApi {
|
|
|
|
|
WrapperMovieList wrapper = mapper.readValue(webpage, WrapperMovieList.class);
|
|
|
|
|
return wrapper.getMovieList();
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get movie lists: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get movie lists: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -702,7 +702,7 @@ public class TheMovieDbApi {
|
|
|
|
|
WrapperChanges wrapper = mapper.readValue(webpage, WrapperChanges.class);
|
|
|
|
|
return wrapper.getChanges();
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get movie changes: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get movie changes: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -720,7 +720,7 @@ public class TheMovieDbApi {
|
|
|
|
|
try {
|
|
|
|
|
return mapper.readValue(webpage, MovieDb.class);
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get latest movie: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get latest movie: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -752,7 +752,7 @@ public class TheMovieDbApi {
|
|
|
|
|
WrapperMovie wrapper = mapper.readValue(webpage, WrapperMovie.class);
|
|
|
|
|
return wrapper.getMovies();
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get upcoming movies: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get upcoming movies: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -787,7 +787,7 @@ public class TheMovieDbApi {
|
|
|
|
|
WrapperMovie wrapper = mapper.readValue(webpage, WrapperMovie.class);
|
|
|
|
|
return wrapper.getMovies();
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get now playing movies: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get now playing movies: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -821,7 +821,7 @@ public class TheMovieDbApi {
|
|
|
|
|
WrapperMovie wrapper = mapper.readValue(webpage, WrapperMovie.class);
|
|
|
|
|
return wrapper.getMovies();
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get popular movie list: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get popular movie list: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -855,7 +855,7 @@ public class TheMovieDbApi {
|
|
|
|
|
WrapperMovie wrapper = mapper.readValue(webpage, WrapperMovie.class);
|
|
|
|
|
return wrapper.getMovies();
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get top rated movies: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get top rated movies: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -904,7 +904,7 @@ public class TheMovieDbApi {
|
|
|
|
|
try {
|
|
|
|
|
return mapper.readValue(webpage, CollectionInfo.class);
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get collection information: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get collection information: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -945,7 +945,7 @@ public class TheMovieDbApi {
|
|
|
|
|
|
|
|
|
|
return artwork;
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get collection images: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get collection images: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -973,7 +973,7 @@ public class TheMovieDbApi {
|
|
|
|
|
try {
|
|
|
|
|
return mapper.readValue(webpage, Person.class);
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get movie info: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get movie info: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -1011,7 +1011,7 @@ public class TheMovieDbApi {
|
|
|
|
|
}
|
|
|
|
|
return personCredits;
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get person credits: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get person credits: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -1042,7 +1042,7 @@ public class TheMovieDbApi {
|
|
|
|
|
}
|
|
|
|
|
return personImages;
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get person images: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get person images: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -1080,7 +1080,7 @@ public class TheMovieDbApi {
|
|
|
|
|
try {
|
|
|
|
|
return mapper.readValue(webpage, Person.class);
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get latest person: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get latest person: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -1105,7 +1105,7 @@ public class TheMovieDbApi {
|
|
|
|
|
try {
|
|
|
|
|
return mapper.readValue(webpage, Company.class);
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get company information: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get company information: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -1142,7 +1142,7 @@ public class TheMovieDbApi {
|
|
|
|
|
WrapperCompanyMovies wrapper = mapper.readValue(webpage, WrapperCompanyMovies.class);
|
|
|
|
|
return wrapper.getResults();
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get company movies: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get company movies: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -1168,7 +1168,7 @@ public class TheMovieDbApi {
|
|
|
|
|
WrapperGenres wrapper = mapper.readValue(webpage, WrapperGenres.class);
|
|
|
|
|
return wrapper.getGenres();
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get genre list: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get genre list: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -1203,7 +1203,7 @@ public class TheMovieDbApi {
|
|
|
|
|
WrapperMovie wrapper = mapper.readValue(webpage, WrapperMovie.class);
|
|
|
|
|
return wrapper.getMovies();
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get genre movie list: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get genre movie list: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -1248,7 +1248,7 @@ public class TheMovieDbApi {
|
|
|
|
|
WrapperMovie wrapper = mapper.readValue(webpage, WrapperMovie.class);
|
|
|
|
|
return wrapper.getMovies();
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to find movie: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to find movie: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -1284,7 +1284,7 @@ public class TheMovieDbApi {
|
|
|
|
|
WrapperCollection wrapper = mapper.readValue(webpage, WrapperCollection.class);
|
|
|
|
|
return wrapper.getResults();
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to find collection: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to find collection: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -1315,7 +1315,7 @@ public class TheMovieDbApi {
|
|
|
|
|
WrapperPerson wrapper = mapper.readValue(webpage, WrapperPerson.class);
|
|
|
|
|
return wrapper.getResults();
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to find person: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to find person: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -1350,7 +1350,7 @@ public class TheMovieDbApi {
|
|
|
|
|
WrapperMovieList wrapper = mapper.readValue(webpage, WrapperMovieList.class);
|
|
|
|
|
return wrapper.getMovieList();
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to find list: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to find list: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -1381,7 +1381,7 @@ public class TheMovieDbApi {
|
|
|
|
|
WrapperCompany wrapper = mapper.readValue(webpage, WrapperCompany.class);
|
|
|
|
|
return wrapper.getResults();
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to find company: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to find company: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -1411,7 +1411,7 @@ public class TheMovieDbApi {
|
|
|
|
|
WrapperKeywords wrapper = mapper.readValue(webpage, WrapperKeywords.class);
|
|
|
|
|
return wrapper.getResults();
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to find keyword: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to find keyword: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -1436,7 +1436,7 @@ public class TheMovieDbApi {
|
|
|
|
|
try {
|
|
|
|
|
return mapper.readValue(webpage, MovieDbList.class);
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get list: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get list: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -1461,7 +1461,7 @@ public class TheMovieDbApi {
|
|
|
|
|
try {
|
|
|
|
|
return mapper.readValue(webpage, Keyword.class);
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get keyword: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get keyword: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -1495,7 +1495,7 @@ public class TheMovieDbApi {
|
|
|
|
|
WrapperKeywordMovies wrapper = mapper.readValue(webpage, WrapperKeywordMovies.class);
|
|
|
|
|
return wrapper.getResults();
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
LOG.warn("Failed to get top rated movies: " + ex.getMessage());
|
|
|
|
|
LOG.warn("Failed to get top rated movies: {}", ex.getMessage());
|
|
|
|
|
throw new MovieDbException(MovieDbExceptionType.MAPPING_FAILED, webpage, ex);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|