get imdb id for episodes

pull/702/head
Luke Pulverenti 11 years ago
parent f8b042b87d
commit 6a665e1807

@ -306,6 +306,13 @@ namespace MediaBrowser.Providers.TV
episode.PremiereDate = airDate.ToUniversalTime(); episode.PremiereDate = airDate.ToUniversalTime();
episode.ProductionYear = airDate.Year; episode.ProductionYear = airDate.Year;
} }
var imdbId = doc.SafeGetString("//IMDB_ID");
if (!string.IsNullOrEmpty(imdbId))
{
episode.SetProviderId(MetadataProviders.Imdb, imdbId);
}
if (!episode.LockedFields.Contains(MetadataFields.Cast)) if (!episode.LockedFields.Contains(MetadataFields.Cast))
{ {
episode.People.Clear(); episode.People.Clear();

Loading…
Cancel
Save