File tree Expand file tree Collapse file tree 5 files changed +26
-13
lines changed
main/java/com/uwetrottmann/tmdb2/services
test/java/com/uwetrottmann/tmdb2/services Expand file tree Collapse file tree 5 files changed +26
-13
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ Change Log
77* Add ` rent ` to ` WatchProviders.CountryInfo ` that contains rental providers for a movie.
88* ` DiscoverTvBuilder ` : add ` vote_average_lte ` and ` vote_count_lte ` . [ #103 ] ( https://github.com/UweTrottmann/tmdb-java/issues/103 )
99* Add ` spoken_languages ` to ` TvShow ` , add ` english_name ` to ` SpokenLanguage ` . [ #91 ] ( https://github.com/UweTrottmann/tmdb-java/issues/91 )
10+ * Deprecate ` externalIds ` methods that accept a ` language ` parameter, it was never supported. Use the replacements
11+ without it.
1012
1113## 2.11.0
1214_ 2024-06-07_
Original file line number Diff line number Diff line change @@ -133,16 +133,24 @@ Call<Credits> credits(
133133 @ Path ("movie_id" ) int movieId
134134 );
135135
136+ /**
137+ * @deprecated Use {@link #externalIds(int)} instead. This method never supported a language parameter.
138+ */
139+ @ Deprecated
140+ @ GET ("movie/{movie_id}/external_ids" )
141+ Call <MovieExternalIds > externalIds (
142+ @ Path ("movie_id" ) int movieId ,
143+ @ Query ("language" ) String language
144+ );
145+
136146 /**
137147 * Get the external ids that we have stored for a movie.
138148 *
139149 * @param movieId A Movie TMDb id.
140- * @param language <em>Optional.</em> ISO 639-1 code.
141150 */
142151 @ GET ("movie/{movie_id}/external_ids" )
143152 Call <MovieExternalIds > externalIds (
144- @ Path ("movie_id" ) int movieId ,
145- @ Query ("language" ) String language
153+ @ Path ("movie_id" ) int movieId
146154 );
147155
148156 /**
Original file line number Diff line number Diff line change @@ -152,16 +152,24 @@ Call<ContentRatings> content_ratings(
152152 @ Path ("tv_id" ) int tmbdId
153153 );
154154
155+ /**
156+ * @deprecated Use {@link #externalIds(int)} instead. This method never supported a language parameter.
157+ */
158+ @ Deprecated
159+ @ GET ("tv/{tv_id}/external_ids" )
160+ Call <TvExternalIds > externalIds (
161+ @ Path ("tv_id" ) int tvShowId ,
162+ @ Query ("language" ) String language
163+ );
164+
155165 /**
156166 * Get the external ids that we have stored for a TV series.
157167 *
158168 * @param tvShowId A Tv Show TMDb id.
159- * @param language <em>Optional.</em> ISO 639-1 code.
160169 */
161170 @ GET ("tv/{tv_id}/external_ids" )
162171 Call <TvExternalIds > externalIds (
163- @ Path ("tv_id" ) int tvShowId ,
164- @ Query ("language" ) String language
172+ @ Path ("tv_id" ) int tvShowId
165173 );
166174
167175 /**
Original file line number Diff line number Diff line change @@ -173,9 +173,7 @@ public void test_credits() throws IOException {
173173 @ Test
174174 public void test_externalIds () throws IOException {
175175 int movieId = 335984 ;
176- Call <MovieExternalIds > call = getUnauthenticatedInstance ().moviesService ().externalIds (
177- movieId , null
178- );
176+ Call <MovieExternalIds > call = getUnauthenticatedInstance ().moviesService ().externalIds (movieId );
179177
180178 MovieExternalIds ids = call .execute ().body ();
181179 assertThat (ids ).isNotNull ();
Original file line number Diff line number Diff line change @@ -220,10 +220,7 @@ public void test_changes() throws IOException {
220220
221221 @ Test
222222 public void test_externalIds () throws IOException {
223- Call <TvExternalIds > call = getUnauthenticatedInstance ().tvService ().externalIds (
224- testTvShow .id ,
225- null
226- );
223+ Call <TvExternalIds > call = getUnauthenticatedInstance ().tvService ().externalIds (testTvShow .id );
227224
228225 TvExternalIds ids = call .execute ().body ();
229226
You can’t perform that action at this time.
0 commit comments