diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index f73bfe3d4e..c79fa08ca9 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -94,6 +94,7 @@ - [iFraan](https://github.com/iFraan) - [Ali](https://github.com/bu3alwa) - [K. Kyle Puchkov](https://github.com/kepper104) +- [ItsAllAboutTheCode](https://github.com/ItsAllAboutTheCode) ## Emby Contributors diff --git a/src/components/themeMediaPlayer.js b/src/components/themeMediaPlayer.js index 87d86b7a4b..dacef3228f 100644 --- a/src/components/themeMediaPlayer.js +++ b/src/components/themeMediaPlayer.js @@ -10,6 +10,7 @@ import { queryClient } from 'utils/query/queryClient'; import { playbackManager } from './playback/playbackmanager'; import ServerConnections from './ServerConnections'; +import { ItemSortBy } from '@jellyfin/sdk/lib/generated-client'; let currentOwnerId; let currentThemeIds = []; @@ -96,8 +97,12 @@ async function loadThemeMedia(serverId, itemId) { return; } - const { data: themeMedia } = await getLibraryApi(api) - .getThemeMedia({ userId, itemId: item.Id, inheritFromParent: true }); + const { data: themeMedia } = await getLibraryApi(api).getThemeMedia({ + userId, + itemId: item.Id, + inheritFromParent: true, + sortBy: [ItemSortBy.Random] + }); const result = userSettings.enableThemeVideos() && themeMedia.ThemeVideosResult?.Items?.length ? themeMedia.ThemeVideosResult : themeMedia.ThemeSongsResult;