getTvExternalIds method
Get TV external ids
Get the external ids for a TV show. We currently support the following external sources.
Media Databases : IMDb ID, TVDB ID, Freebase MID*, Freebase ID*, TVRage ID*
Social IDs : Facebook, Instagram, Twitter
*Defunct or no longer available as a service.
For more details on the API go here.
Throws FilmGyaanException on an error.
Implementation
Future<ExternalIds> getTvExternalIds({
required int tvId,
}) async {
Ensure(tvId > 0).isTrue('Tv Id should be > 0');
var params = TvExternalIdsParams(
tvId: tvId,
);
_logger.info('Getting tv external ids for $tvId');
return defaultFlow<TvExternalIdsParams, ExternalIds>(
core: this,
params: params,
serializer: (dynamic json) => ExternalIds.fromMap(
json as Map<String, dynamic>,
),
);
}