mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Add header links for music videos
This commit is contained in:
parent
5ca8c679ea
commit
478bef7655
@ -707,6 +707,19 @@ namespace MediaBrowser.Controller.Dto
|
||||
|
||||
if (musicVideo != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(musicVideo.Album))
|
||||
{
|
||||
var parentAlbum = _libraryManager.RootFolder
|
||||
.RecursiveChildren
|
||||
.OfType<MusicAlbum>()
|
||||
.FirstOrDefault(i => string.Equals(i.Name, musicVideo.Album, StringComparison.OrdinalIgnoreCase));
|
||||
|
||||
if (parentAlbum != null)
|
||||
{
|
||||
dto.AlbumId = GetClientItemId(parentAlbum);
|
||||
}
|
||||
}
|
||||
|
||||
SetMusicVideoProperties(dto, musicVideo);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user