Add tvrage and imdb ids for episodes
This commit is contained in:
parent
665220c4fb
commit
96348ed744
|
@ -121,9 +121,20 @@ namespace MediaBrowser.Providers.Plugins.Tmdb.TV
|
||||||
CommunityRating = Convert.ToSingle(episodeResult.VoteAverage)
|
CommunityRating = Convert.ToSingle(episodeResult.VoteAverage)
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(episodeResult.ExternalIds?.TvdbId))
|
var externalIds = episodeResult.ExternalIds;
|
||||||
|
if (!string.IsNullOrEmpty(externalIds?.TvdbId))
|
||||||
{
|
{
|
||||||
item.SetProviderId(MetadataProvider.Tvdb, episodeResult.ExternalIds.TvdbId);
|
item.SetProviderId(MetadataProvider.Tvdb, externalIds.TvdbId);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(externalIds?.ImdbId))
|
||||||
|
{
|
||||||
|
item.SetProviderId(MetadataProvider.Imdb, externalIds.ImdbId);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(externalIds?.TvrageId))
|
||||||
|
{
|
||||||
|
item.SetProviderId(MetadataProvider.TvRage, externalIds.TvrageId);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (episodeResult.Videos?.Results != null)
|
if (episodeResult.Videos?.Results != null)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user