Browse Source

ChannelManager: Update Name and CommunityRating values when changed

softworkz 9 năm trước cách đây
mục cha
commit
71f8588b3a

+ 14 - 0
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)