mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 01:24:44 +01:00
support head requests for images
This commit is contained in:
@@ -194,7 +194,32 @@ namespace MediaBrowser.Server.Implementations.LiveTv
|
||||
}
|
||||
}
|
||||
|
||||
var enableFavoriteSorting = query.EnableFavoriteSorting;
|
||||
|
||||
channels = channels.OrderBy(i =>
|
||||
{
|
||||
if (enableFavoriteSorting)
|
||||
{
|
||||
var userData = _userDataManager.GetUserData(user.Id, i.GetUserDataKey());
|
||||
|
||||
if (userData.IsFavorite)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
if (userData.Likes.HasValue)
|
||||
{
|
||||
if (!userData.Likes.Value)
|
||||
{
|
||||
return 3;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
return 2;
|
||||
})
|
||||
.ThenBy(i =>
|
||||
{
|
||||
double number = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user