mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
fixed albums displaying wrong name
This commit is contained in:
parent
72e9c087b5
commit
8c64af83cd
1 changed files with 17 additions and 1 deletions
|
@ -25,6 +25,22 @@ namespace MediaBrowser.Providers.Music
|
||||||
return item is MusicAlbum;
|
return item is MusicAlbum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override bool RefreshOnVersionChange
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override string ProviderVersion
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return "1";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected override bool NeedsRefreshInternal(BaseItem item, BaseProviderInfo providerInfo)
|
protected override bool NeedsRefreshInternal(BaseItem item, BaseProviderInfo providerInfo)
|
||||||
{
|
{
|
||||||
// If song metadata has changed
|
// If song metadata has changed
|
||||||
|
@ -83,7 +99,7 @@ namespace MediaBrowser.Providers.Music
|
||||||
|
|
||||||
if (!item.LockedFields.Contains(MetadataFields.Name))
|
if (!item.LockedFields.Contains(MetadataFields.Name))
|
||||||
{
|
{
|
||||||
var name = songs.Select(i => i.Name).FirstOrDefault(i => !string.IsNullOrEmpty(i));
|
var name = songs.Select(i => i.Album).FirstOrDefault(i => !string.IsNullOrEmpty(i));
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(name))
|
if (!string.IsNullOrEmpty(name))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue