Clear old collection numbers if not there on new fetch

This commit is contained in:
Eric Reed 2013-08-19 15:37:44 -04:00
parent 8f105fb618
commit 50bb545b53

View File

@ -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);