mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-23 10:34:43 +01:00
added headroom scrolling
This commit is contained in:
@@ -1193,7 +1193,7 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
{
|
||||
dto.Album = audio.Album;
|
||||
|
||||
var albumParent = audio.FindParent<MusicAlbum>();
|
||||
var albumParent = audio.AlbumEntity;
|
||||
|
||||
if (albumParent != null)
|
||||
{
|
||||
@@ -1208,15 +1208,6 @@ namespace MediaBrowser.Server.Implementations.Dto
|
||||
//}
|
||||
}
|
||||
|
||||
var album = item as MusicAlbum;
|
||||
|
||||
if (album != null)
|
||||
{
|
||||
dto.SoundtrackIds = album.SoundtrackIds
|
||||
.Select(i => i.ToString("N"))
|
||||
.ToArray();
|
||||
}
|
||||
|
||||
var hasArtist = item as IHasArtist;
|
||||
if (hasArtist != null)
|
||||
{
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace MediaBrowser.Server.Implementations.IO
|
||||
// This is an arbitraty amount of time, but delay it because file system writes often trigger events after RemoveTempIgnore has been called.
|
||||
// Seeing long delays in some situations, especially over the network.
|
||||
// Seeing delays up to 40 seconds, but not going to ignore changes for that long.
|
||||
await Task.Delay(1500).ConfigureAwait(false);
|
||||
await Task.Delay(5000).ConfigureAwait(false);
|
||||
|
||||
string val;
|
||||
_tempIgnoredPaths.TryRemove(path, out val);
|
||||
|
||||
@@ -1550,7 +1550,7 @@ namespace MediaBrowser.Server.Implementations.Session
|
||||
|
||||
if (info.PrimaryImageTag == null)
|
||||
{
|
||||
var album = audio.Parents.OfType<MusicAlbum>().FirstOrDefault();
|
||||
var album = audio.AlbumEntity;
|
||||
|
||||
if (album != null && album.HasImage(ImageType.Primary))
|
||||
{
|
||||
|
||||
@@ -122,7 +122,7 @@ namespace MediaBrowser.Server.Implementations.UserViews
|
||||
var audio = i as Audio;
|
||||
if (audio != null)
|
||||
{
|
||||
var album = audio.FindParent<MusicAlbum>();
|
||||
var album = audio.AlbumEntity;
|
||||
if (album != null && album.HasImage(ImageType.Primary))
|
||||
{
|
||||
return album;
|
||||
|
||||
Reference in New Issue
Block a user