mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 05:47:14 -04:00
get imdb id for episodes
This commit is contained in:
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…
Reference in New Issue
Block a user