Skip to content

Commit

Permalink
Deprecate TVrage IDs, appear no longer supported
Browse files Browse the repository at this point in the history
  • Loading branch information
UweTrottmann committed May 24, 2024
1 parent 2b00f02 commit 03d635a
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
Change Log
==========
## Next version
_in development

* Deprecated TV rage ID, it appears to be no longer used.

## 6.12.0
_2024-01-25_
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/uwetrottmann/trakt5/TraktLink.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ public class TraktLink {
private static final String URL_IMDB = TraktV2.SITE_URL + "/search/imdb/";
private static final String URL_TMDB = TraktV2.SITE_URL + "/search/tmdb/";
private static final String URL_TVDB = TraktV2.SITE_URL + "/search/tvdb/";
/**
* @deprecated This appears to be no longer supported.
*/
@Deprecated
private static final String URL_TVRAGE = TraktV2.SITE_URL + "/search/tvrage/";

private static final String PATH_SEASONS = "/seasons/";
Expand Down Expand Up @@ -115,7 +119,10 @@ public static String tvdb(int tvdbId) {

/**
* Creates a link to a show search for this id.
*
* @deprecated This appears to be no longer supported.
*/
@Deprecated
public static String tvrage(int tvrageId) {
return URL_TVRAGE + tvrageId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
public class EpisodeIds extends BaseIds {

public Integer tvdb;
/**
* @deprecated This appears to be no longer supported.
*/
@Deprecated
public Integer tvrage;

@Nonnull
Expand Down Expand Up @@ -51,6 +55,10 @@ public static EpisodeIds tvdb(int tvdb) {
return ids;
}

/**
* @deprecated This appears to be no longer supported.
*/
@Deprecated
@Nonnull
public static EpisodeIds tvrage(int tvrage) {
EpisodeIds ids = new EpisodeIds();
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/uwetrottmann/trakt5/entities/PersonIds.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
public class PersonIds extends BaseIds {

public String slug;
/**
* @deprecated This appears to be no longer supported.
*/
@Deprecated
public String tvrage;

@Nonnull
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/uwetrottmann/trakt5/entities/SeasonIds.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ public class SeasonIds {
public Integer tvdb;
public Integer tmdb;
public Integer trakt;
/**
* @deprecated This appears to be no longer supported.
*/
@Deprecated
public Integer tvrage;

}
8 changes: 8 additions & 0 deletions src/main/java/com/uwetrottmann/trakt5/entities/ShowIds.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ public class ShowIds extends BaseIds {

public String slug;
public Integer tvdb;
/**
* @deprecated This appears to be no longer supported.
*/
@Deprecated
public Integer tvrage;

@Nonnull
Expand Down Expand Up @@ -59,6 +63,10 @@ public static ShowIds tvdb(int tvdb) {
return ids;
}

/**
* @deprecated This appears to be no longer supported.
*/
@Deprecated
@Nonnull
public static ShowIds tvrage(int tvrage) {
ShowIds ids = new ShowIds();
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/uwetrottmann/trakt5/enums/IdType.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ public enum IdType implements TraktEnum {
IMDB("imdb"),
TMDB("tmdb"),
TVDB("tvdb"),
/**
* @deprecated This appears to be no longer supported.
*/
@Deprecated
TVRAGE("tvrage");

private final String value;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/uwetrottmann/trakt5/services/Search.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Call<List<SearchResult>> textQueryShow(
);

/**
* Lookup items by their Trakt, IMDB, TMDB, TVDB, or TVRage ID.
* Lookup items by their Trakt, IMDB, TMDB, TVDB ID.
*
* @see <a href="http://docs.trakt.apiary.io/#reference/search/id-lookup/get-id-lookup-results">Search - ID Lookup</a>
* @see <a href="http://docs.trakt.apiary.io/#introduction/extended-info">Extended</a>
Expand Down
1 change: 0 additions & 1 deletion src/test/java/com/uwetrottmann/trakt5/TestData.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ public interface TestData {
String SHOW_IMDB_ID = "tt3952222";
int SHOW_TMDB_ID = 62413;
int SHOW_TVDB_ID = 281534;
int SHOW_TVRAGE_ID = 38299;
int SHOW_YEAR = 2015;

String EPISODE_TITLE = "Bangarang";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ private void assertTestShow(Show show) {
assertThat(show.ids.imdb).isEqualTo(TestData.SHOW_IMDB_ID);
assertThat(show.ids.tmdb).isEqualTo(TestData.SHOW_TMDB_ID);
assertThat(show.ids.tvdb).isEqualTo(TestData.SHOW_TVDB_ID);
assertThat(show.ids.tvrage).isEqualTo(TestData.SHOW_TVRAGE_ID);
}

@Test
Expand Down

0 comments on commit 03d635a

Please sign in to comment.