1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

don't use random backdrop in item header

This commit is contained in:
TheMelmacian 2023-07-19 23:56:09 +02:00
parent 23a22d6b24
commit 5df5f6cdb2
3 changed files with 14 additions and 13 deletions

View file

@ -14,7 +14,7 @@ import alert from '../alert';
import { PluginType } from '../../types/plugin.ts';
import { includesAny } from '../../utils/container.ts';
import { getItems } from '../../utils/jellyfin-apiclient/getItems.ts';
import { getRandomItemBackdropImageUrl } from '../../utils/url';
import { getItemBackdropImageUrl } from '../../utils/url';
const UNLIMITED_ITEMS = -1;
@ -2672,7 +2672,7 @@ class PlaybackManager {
title: item.Name
};
const backdropUrl = getRandomItemBackdropImageUrl(apiClient, item);
const backdropUrl = getItemBackdropImageUrl(apiClient, item, true);
if (backdropUrl) {
resultInfo.backdropUrl = backdropUrl;
}