Merge pull request #1871 from softworkz/ChannelItemUpdate

ChannelManager: Update Name and CommunityRating values when changed
This commit is contained in:
Luke 2016-06-24 14:39:50 -04:00 committed by GitHub
commit 0441693540

View File

@ -1320,6 +1320,20 @@ namespace MediaBrowser.Server.Implementations.Channels
item.Tags = info.Tags;
item.HomePageUrl = info.HomePageUrl;
}
else
{
if (item.Name != info.Name)
{
item.Name = info.Name;
forceUpdate = true;
}
if (item.CommunityRating != info.CommunityRating)
{
item.CommunityRating = info.CommunityRating;
forceUpdate = true;
}
}
var hasArtists = item as IHasArtist;
if (hasArtists != null)