aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-06-24 14:39:50 -0400
committerGitHub <noreply@github.com>2016-06-24 14:39:50 -0400
commit044169354081eec68b1b098430276cf19e60154d (patch)
treec20a0e1083b01dff0ba6e286e5c36dfc1ba86b69
parent1ce1f15a95b179bf11ff7a574491bc4f6529f116 (diff)
parent71f8588b3abded917ac4f1ba753bf8a2d60df306 (diff)
Merge pull request #1871 from softworkz/ChannelItemUpdate
ChannelManager: Update Name and CommunityRating values when changed
-rw-r--r--MediaBrowser.Server.Implementations/Channels/ChannelManager.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs b/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
index 609c24692..8efc600e9 100644
--- a/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
+++ b/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
@@ -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)