Clear old collection numbers if not there on new fetch

pull/702/head
Eric Reed 11 years ago
parent 8f105fb618
commit 50bb545b53

@ -676,6 +676,10 @@ namespace MediaBrowser.Providers.Movies
{
movie.SetProviderId(MetadataProviders.TmdbCollection, movieData.belongs_to_collection.id.ToString(CultureInfo.InvariantCulture));
}
else
{
movie.SetProviderId(MetadataProviders.TmdbCollection, null); // clear out any old entry
}
float rating;
string voteAvg = movieData.vote_average.ToString(CultureInfo.InvariantCulture);

Loading…
Cancel
Save