本文整理汇总了Java中com.omertron.themoviedbapi.MovieDbException.printStackTrace方法的典型用法代码示例。如果您正苦于以下问题:Java MovieDbException.printStackTrace方法的具体用法?Java MovieDbException.printStackTrace怎么用?Java MovieDbException.printStackTrace使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.omertron.themoviedbapi.MovieDbException
的用法示例。
在下文中一共展示了MovieDbException.printStackTrace方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getMovie
import com.omertron.themoviedbapi.MovieDbException; //导入方法依赖的package包/类
public static Movie getMovie(MovieInfo movieInfo, Torrent torrent) {
Movie movie = torrent != null ? torrent.getMovie() : null;
if (movie == null) {
movie = new Movie();
if (torrent != null) {
torrent.setMovie(movie);
}
}
movie.setTitle(movieInfo.getTitle());
movie.setOriginalTitle(movieInfo.getOriginalTitle());
if (StringUtils.isNotBlank(movieInfo.getOverview())) {
movie.setPlot(movieInfo.getOverview());
}
try {
Configuration configuration = instance.getConfiguration();
String posterPath = configuration.createImageUrl(movieInfo.getPosterPath(), configuration.getPosterSizes().get(0)).toExternalForm();
if (StringUtils.isNotBlank(posterPath)) {
movie.setPoster(posterPath);
}
} catch (MovieDbException e) {
e.printStackTrace();
}
return movie;
}
示例2: getFullImageUrl
import com.omertron.themoviedbapi.MovieDbException; //导入方法依赖的package包/类
public String getFullImageUrl(String posterPath, String size) {
try {
return movieDbApi.createImageUrl(posterPath, size).toString();
} catch (MovieDbException e) {
e.printStackTrace();
}
return "";
}
示例3: getPopularTV
import com.omertron.themoviedbapi.MovieDbException; //导入方法依赖的package包/类
public ResultList<TVBasic> getPopularTV(int pageNumber) {
try {
return movieDbApi.getTVPopular(pageNumber, null);
} catch (MovieDbException e) {
e.printStackTrace();
}
return new ResultList<>();
}
示例4: searchTV
import com.omertron.themoviedbapi.MovieDbException; //导入方法依赖的package包/类
public ResultList<TVBasic> searchTV(String title, int pageNumber) {
try {
return movieDbApi.searchTV(title, pageNumber, null, null, null);
} catch (MovieDbException e) {
e.printStackTrace();
}
return new ResultList<>();
}
示例5: getTVInfo
import com.omertron.themoviedbapi.MovieDbException; //导入方法依赖的package包/类
public TVInfo getTVInfo(int tmdbId, String... appendToResponse) {
try {
return movieDbApi.getTVInfo(tmdbId, null, appendToResponse);
} catch (MovieDbException e) {
e.printStackTrace();
}
return new TVInfo();
}
示例6: getTvSeasonInfo
import com.omertron.themoviedbapi.MovieDbException; //导入方法依赖的package包/类
public TVSeasonInfo getTvSeasonInfo(int tmdbId, int seasonNumber) {
try {
return movieDbApi.getSeasonInfo(tmdbId, seasonNumber, null);
} catch (MovieDbException e) {
e.printStackTrace();
}
return new TVSeasonInfo();
}
示例7: getPopularMovies
import com.omertron.themoviedbapi.MovieDbException; //导入方法依赖的package包/类
public ResultList<MovieInfo> getPopularMovies(int pageNumber) {
try {
return movieDbApi.getPopularMovieList(pageNumber, null);
} catch (MovieDbException e) {
e.printStackTrace();
}
return new ResultList<>();
}
示例8: searchMovie
import com.omertron.themoviedbapi.MovieDbException; //导入方法依赖的package包/类
public ResultList<MovieInfo> searchMovie(String title, int pageNumber) {
try {
return movieDbApi.searchMovie(title, pageNumber, null, true, null, null, null);
} catch (MovieDbException e) {
e.printStackTrace();
}
return new ResultList<>();
}
示例9: getMovieInfo
import com.omertron.themoviedbapi.MovieDbException; //导入方法依赖的package包/类
public MovieInfo getMovieInfo(int tmdbId, String... appendToResponse) {
try {
return movieDbApi.getMovieInfo(tmdbId, null, appendToResponse);
} catch (MovieDbException e) {
e.printStackTrace();
}
return new MovieInfo();
}