mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
make sure theme song owner id is correct
This commit is contained in:
parent
9bb1bf69a5
commit
e1fb68b70c
@ -615,9 +615,15 @@ namespace MediaBrowser.Api
|
|||||||
|
|
||||||
if (album != null)
|
if (album != null)
|
||||||
{
|
{
|
||||||
themeSongIds = album.SoundtrackIds
|
var linkedItemWithThemes = album.SoundtrackIds
|
||||||
.SelectMany(i => _libraryManager.GetItemById(i).ThemeSongIds)
|
.Select(i => _libraryManager.GetItemById(i))
|
||||||
.ToList();
|
.FirstOrDefault(i => i.ThemeSongIds.Count > 0);
|
||||||
|
|
||||||
|
if (linkedItemWithThemes != null)
|
||||||
|
{
|
||||||
|
themeSongIds = linkedItemWithThemes.ThemeSongIds;
|
||||||
|
item = linkedItemWithThemes;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -677,9 +683,15 @@ namespace MediaBrowser.Api
|
|||||||
|
|
||||||
if (album != null)
|
if (album != null)
|
||||||
{
|
{
|
||||||
themeVideoIds = album.SoundtrackIds
|
var linkedItemWithThemes = album.SoundtrackIds
|
||||||
.SelectMany(i => _libraryManager.GetItemById(i).ThemeVideoIds)
|
.Select(i => _libraryManager.GetItemById(i))
|
||||||
.ToList();
|
.FirstOrDefault(i => i.ThemeVideoIds.Count > 0);
|
||||||
|
|
||||||
|
if (linkedItemWithThemes != null)
|
||||||
|
{
|
||||||
|
themeVideoIds = linkedItemWithThemes.ThemeVideoIds;
|
||||||
|
item = linkedItemWithThemes;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user