OrbiterToad / yts-api

API Wrapper for yts.am

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yts-api

API Wrapper for yts.am

Functionality

  • List Movies
  • Movie Suggestions
  • Movie Details

Usage

List Movies
List<Movie> movieList = Yts.listMovies("Spiderman", SortBy.DOWNLOAD_COUNT);

for (Movie movie : movieList) {
    System.out.println(movie.id + "\t" + movie.title);
}
Movie Suggestions
List<Movie> movieSuggestions = Yts.movieSuggestions(1606);

for (Movie movie : movieSuggestions) {
    System.out.println(movie.id + "\t" + movie.title);
}
Movie Details & Torrents
Movie movie = Yts.movieDetails(3488);

System.out.println("id: " + movie.getId());
System.out.println("title: " + movie.getTitleEnglish());

for (Torrent torrent : movie.getTorrents()) {
    System.out.println("------------------------------------");
    System.out.println(torrent.getPeers() + "/" + torrent.getSeeds());
    System.out.println(torrent.getUrl());
    System.out.println(torrent.getSize() + " - " + torrent.getQuality());
}

About

API Wrapper for yts.am


Languages

Language:Java 100.0%