mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 20:08:59 +02:00
Merge pull request #1871 from softworkz/ChannelItemUpdate
ChannelManager: Update Name and CommunityRating values when changed
This commit is contained in:
commit
0441693540
1 changed files with 14 additions and 0 deletions
|
@ -1320,6 +1320,20 @@ namespace MediaBrowser.Server.Implementations.Channels
|
||||||
item.Tags = info.Tags;
|
item.Tags = info.Tags;
|
||||||
item.HomePageUrl = info.HomePageUrl;
|
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;
|
var hasArtists = item as IHasArtist;
|
||||||
if (hasArtists != null)
|
if (hasArtists != null)
|
||||||
|
|
Loading…
Reference in a new issue