|
|
|
|
@ -187,7 +187,7 @@ public class TmdbMovies extends AbstractMethod {
|
|
|
|
|
try {
|
|
|
|
|
WrapperAlternativeTitles wrapper = MAPPER.readValue(webpage, WrapperAlternativeTitles.class);
|
|
|
|
|
ResultList<AlternativeTitle> results = new ResultList<AlternativeTitle>(wrapper.getTitles());
|
|
|
|
|
results.copyWrapper(wrapper);
|
|
|
|
|
wrapper.setResultProperties(results);
|
|
|
|
|
return results;
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
throw new MovieDbException(ApiExceptionType.MAPPING_FAILED, "Failed to get alternative titles", url, ex);
|
|
|
|
|
@ -238,7 +238,7 @@ public class TmdbMovies extends AbstractMethod {
|
|
|
|
|
try {
|
|
|
|
|
WrapperImages wrapper = MAPPER.readValue(webpage, WrapperImages.class);
|
|
|
|
|
ResultList<Artwork> results = new ResultList<Artwork>(wrapper.getAll());
|
|
|
|
|
results.copyWrapper(wrapper);
|
|
|
|
|
wrapper.setResultProperties(results);
|
|
|
|
|
return results;
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
throw new MovieDbException(ApiExceptionType.MAPPING_FAILED, "Failed to get images", url, ex);
|
|
|
|
|
@ -267,7 +267,7 @@ public class TmdbMovies extends AbstractMethod {
|
|
|
|
|
try {
|
|
|
|
|
WrapperMovieKeywords wrapper = MAPPER.readValue(webpage, WrapperMovieKeywords.class);
|
|
|
|
|
ResultList<Keyword> results = new ResultList<Keyword>(wrapper.getKeywords());
|
|
|
|
|
results.copyWrapper(wrapper);
|
|
|
|
|
wrapper.setResultProperties(results);
|
|
|
|
|
return results;
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
throw new MovieDbException(ApiExceptionType.MAPPING_FAILED, "Failed to get keywords", url, ex);
|
|
|
|
|
@ -296,7 +296,7 @@ public class TmdbMovies extends AbstractMethod {
|
|
|
|
|
try {
|
|
|
|
|
WrapperReleaseInfo wrapper = MAPPER.readValue(webpage, WrapperReleaseInfo.class);
|
|
|
|
|
ResultList<ReleaseInfo> results = new ResultList<ReleaseInfo>(wrapper.getCountries());
|
|
|
|
|
results.copyWrapper(wrapper);
|
|
|
|
|
wrapper.setResultProperties(results);
|
|
|
|
|
return results;
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
throw new MovieDbException(ApiExceptionType.MAPPING_FAILED, "Failed to get release information", url, ex);
|
|
|
|
|
@ -327,7 +327,7 @@ public class TmdbMovies extends AbstractMethod {
|
|
|
|
|
try {
|
|
|
|
|
WrapperVideos wrapper = MAPPER.readValue(webpage, WrapperVideos.class);
|
|
|
|
|
ResultList<Video> results = new ResultList<Video>(wrapper.getVideos());
|
|
|
|
|
results.copyWrapper(wrapper);
|
|
|
|
|
wrapper.setResultProperties(results);
|
|
|
|
|
return results;
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
throw new MovieDbException(ApiExceptionType.MAPPING_FAILED, "Failed to get videos", url, ex);
|
|
|
|
|
@ -354,7 +354,7 @@ public class TmdbMovies extends AbstractMethod {
|
|
|
|
|
try {
|
|
|
|
|
WrapperTranslations wrapper = MAPPER.readValue(webpage, WrapperTranslations.class);
|
|
|
|
|
ResultList<Translation> results = new ResultList<Translation>(wrapper.getTranslations());
|
|
|
|
|
results.copyWrapper(wrapper);
|
|
|
|
|
wrapper.setResultProperties(results);
|
|
|
|
|
return results;
|
|
|
|
|
} catch (IOException ex) {
|
|
|
|
|
throw new MovieDbException(ApiExceptionType.MAPPING_FAILED, "Failed to get translations", url, ex);
|
|
|
|
|
|