|
|
@ -11,6 +11,7 @@ import {
|
|
|
|
TmdbNetwork,
|
|
|
|
TmdbNetwork,
|
|
|
|
TmdbPersonCombinedCredits,
|
|
|
|
TmdbPersonCombinedCredits,
|
|
|
|
TmdbPersonDetail,
|
|
|
|
TmdbPersonDetail,
|
|
|
|
|
|
|
|
TmdbProductionCompany,
|
|
|
|
TmdbRegion,
|
|
|
|
TmdbRegion,
|
|
|
|
TmdbSearchMovieResponse,
|
|
|
|
TmdbSearchMovieResponse,
|
|
|
|
TmdbSearchMultiResponse,
|
|
|
|
TmdbSearchMultiResponse,
|
|
|
@ -18,7 +19,6 @@ import {
|
|
|
|
TmdbSeasonWithEpisodes,
|
|
|
|
TmdbSeasonWithEpisodes,
|
|
|
|
TmdbTvDetails,
|
|
|
|
TmdbTvDetails,
|
|
|
|
TmdbUpcomingMoviesResponse,
|
|
|
|
TmdbUpcomingMoviesResponse,
|
|
|
|
TmdbProductionCompany,
|
|
|
|
|
|
|
|
} from './interfaces';
|
|
|
|
} from './interfaces';
|
|
|
|
|
|
|
|
|
|
|
|
interface SearchOptions {
|
|
|
|
interface SearchOptions {
|
|
|
@ -614,9 +614,7 @@ class TheMovieDb extends ExternalAPI {
|
|
|
|
return tvshow;
|
|
|
|
return tvshow;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
throw new Error(
|
|
|
|
throw new Error(`No show returned from API for ID ${tvdbId}`);
|
|
|
|
`[TMDb] Failed to find a TV show with the provided TVDB ID: ${tvdbId}`
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
} catch (e) {
|
|
|
|
} catch (e) {
|
|
|
|
throw new Error(
|
|
|
|
throw new Error(
|
|
|
|
`[TMDb] Failed to get TV show using the external TVDB ID: ${e.message}`
|
|
|
|
`[TMDb] Failed to get TV show using the external TVDB ID: ${e.message}`
|
|
|
|