aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsoftworkz <softworkz@hotmail.com>2016-06-22 23:23:50 +0200
committersoftworkz <softworkz@hotmail.com>2016-06-22 23:26:06 +0200
commit71f8588b3abded917ac4f1ba753bf8a2d60df306 (patch)
tree17d7e6d9514454860ead19b77bd02f0afb8d6b55
parent461e9b2cddb829e47420fddc373c795523b3375e (diff)
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 aac5ddcaf..41b4eb82c 100644
--- a/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
+++ b/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
@@ -1313,6 +1313,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)