Skip to content

Commit

Permalink
Tv series api (#177)
Browse files Browse the repository at this point in the history
* update tvseries api

* test tvseries api
  • Loading branch information
c-eg committed Mar 14, 2024
1 parent b7db83b commit 1c3ed18
Show file tree
Hide file tree
Showing 88 changed files with 22,590 additions and 445 deletions.
4 changes: 2 additions & 2 deletions src/main/java/info/movito/themoviedbapi/TmdbApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ public List<Timezone> getTimezones() throws TmdbException {
return new TmdbTimezones(this).getTimezones();
}

public TmdbTV getTvSeries() {
return new TmdbTV(this);
public TmdbTvSeries getTvSeries() {
return new TmdbTvSeries(this);
}

public TmdbTvEpisodes getTvEpisodes() {
Expand Down
16 changes: 9 additions & 7 deletions src/main/java/info/movito/themoviedbapi/TmdbMovies.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import info.movito.themoviedbapi.model.core.MovieResultsPage;
import info.movito.themoviedbapi.model.core.responses.ResponseStatus;
import info.movito.themoviedbapi.model.movies.AccountStates;
import info.movito.themoviedbapi.model.core.accountstates.AccountStates;
import info.movito.themoviedbapi.model.movies.AlternativeTitles;
import info.movito.themoviedbapi.model.movies.Credits;
import info.movito.themoviedbapi.model.movies.ExternalIds;
Expand All @@ -11,11 +11,11 @@
import info.movito.themoviedbapi.model.movies.MovieDb;
import info.movito.themoviedbapi.model.movies.MovieListResultsPage;
import info.movito.themoviedbapi.model.movies.ReleaseDateResults;
import info.movito.themoviedbapi.model.movies.ReviewResultsPage;
import info.movito.themoviedbapi.model.core.ReviewResultsPage;
import info.movito.themoviedbapi.model.movies.Translations;
import info.movito.themoviedbapi.model.movies.VideoResults;
import info.movito.themoviedbapi.model.core.video.VideoResults;
import info.movito.themoviedbapi.model.movies.changes.ChangeResults;
import info.movito.themoviedbapi.model.providers.ProviderResults;
import info.movito.themoviedbapi.model.core.watchproviders.ProviderResults;
import info.movito.themoviedbapi.tools.ApiUrl;
import info.movito.themoviedbapi.tools.RequestType;
import info.movito.themoviedbapi.tools.TmdbException;
Expand Down Expand Up @@ -122,7 +122,7 @@ public Credits getCredits(int movieId, String language) throws TmdbException {
}

/**
* <p>Get the external ID's for a movie..</p>
* <p>Get the external ID's for a movie.</p>
* <p>See the <a href="https://developer.themoviedb.org/reference/movie-external-ids">documentation</a> for more info.</p>
*
* @param movieId The TMDb id of the movie.
Expand Down Expand Up @@ -287,6 +287,8 @@ public VideoResults getVideos(int movieId, String language) throws TmdbException

/**
* <p>Get the list of streaming providers we have for a movie.</p>
* <p>In order to use this data you must attribute the source of the data as JustWatch. If TMDb find any usage not complying with these
* terms TMDb will revoke access to the API.</p>
* <p>See the <a href="https://developer.themoviedb.org/reference/movie-watch-providers">documentation</a> for more info.</p>
*
* @param movieId The TMDb id of the movie.
Expand All @@ -307,7 +309,7 @@ public ProviderResults getWatchProviders(int movieId) throws TmdbException {
* @param movieId The TMDb id of the movie.
* @param guestSessionId optional - The guest session id of the user.
* @param sessionId optional - The session id of the user.
* @param rating The rating of the movie. Must be: 0 &lt; rating &lE; 10.
* @param rating The rating of the movie. Must be: 0 &lt; rating &le; 10.
* @return The response status.
* @throws TmdbException If there was an error making the request or mapping the response.
*/
Expand All @@ -329,7 +331,7 @@ public ResponseStatus addRating(int movieId, String guestSessionId, String sessi

/**
* <p>Delete a user rating.</p>
* <p>Note: if no <code>guestSessionId</code> or <code>sessionId</code> are provided, the method will delete the rating to the API key
* <p>Note: if no <code>guestSessionId</code> or <code>sessionId</code> are provided, the method will delete the rating for the API key
* holder's account.</p>
* <p>See the <a href="https://developer.themoviedb.org/reference/movie-delete-rating">documentation</a> for more info.</p>
*
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/info/movito/themoviedbapi/TmdbSearch.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import static info.movito.themoviedbapi.TmdbCollections.TMDB_METHOD_COLLECTION;
import static info.movito.themoviedbapi.TmdbLists.TMDB_METHOD_LIST;
import static info.movito.themoviedbapi.TmdbMovies.TMDB_METHOD_MOVIE;
import static info.movito.themoviedbapi.TmdbTV.TMDB_METHOD_TV;
import static info.movito.themoviedbapi.TmdbTvSeries.TMDB_METHOD_TV;
import static org.apache.commons.lang3.StringUtils.isBlank;
import static org.apache.commons.lang3.StringUtils.isNotBlank;

Expand Down
196 changes: 0 additions & 196 deletions src/main/java/info/movito/themoviedbapi/TmdbTV.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import info.movito.themoviedbapi.tools.ApiUrl;
import info.movito.themoviedbapi.tools.TmdbException;

import static info.movito.themoviedbapi.TmdbTV.TMDB_METHOD_TV;
import static info.movito.themoviedbapi.TmdbTvSeries.TMDB_METHOD_TV;
import static info.movito.themoviedbapi.TmdbTvEpisodes.EpisodeMethod.credits;
import static info.movito.themoviedbapi.TmdbTvSeasons.TMDB_METHOD_TV_SEASON;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/info/movito/themoviedbapi/TmdbTvSeasons.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import info.movito.themoviedbapi.tools.ApiUrl;
import info.movito.themoviedbapi.tools.TmdbException;

import static info.movito.themoviedbapi.TmdbTV.TMDB_METHOD_TV;
import static info.movito.themoviedbapi.TmdbTvSeries.TMDB_METHOD_TV;

/**
* The movie database api for tv seasons. See the
Expand Down
Loading

0 comments on commit 1c3ed18

Please sign in to comment.