Skip to content

The Free Software Media System - Server Backend & API

ChannelManager: Update Name and CommunityRating values when changed

softworkz71f8588b3abd
diff --git a/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs b/MediaBrowser.Server.Implementations/Channels/ChannelManager.cs
index aac5ddcaf7..41b4eb82ce 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)