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

Display MediaSourceCount for all media Types

All items support alternate local versions, even if it's not documented. Tested with episode and musicVideo types. Added MSC to list items as well.
This commit is contained in:
SenorSmartyPants 2022-01-20 15:58:14 -06:00
parent 16b777bfd1
commit 17f44e3fac
5 changed files with 11 additions and 5 deletions

View file

@ -251,7 +251,7 @@ import { appRouter } from '../components/appRouter';
if (params.type === 'nextup') {
return apiClient.getNextUpEpisodes(modifyQueryWithFilters(instance, {
Limit: limit,
Fields: 'PrimaryImageAspectRatio,DateCreated,BasicSyncInfo',
Fields: 'PrimaryImageAspectRatio,DateCreated,BasicSyncInfo,MediaSourceCount',
UserId: apiClient.getCurrentUserId(),
ImageTypeLimit: 1,
EnableImageTypes: 'Primary,Backdrop,Thumb',
@ -320,7 +320,7 @@ import { appRouter } from '../components/appRouter';
return apiClient.getItems(apiClient.getCurrentUserId(), modifyQueryWithFilters(instance, {
StartIndex: startIndex,
Limit: limit,
Fields: 'PrimaryImageAspectRatio,SortName,Path,SongCount,ChildCount',
Fields: 'PrimaryImageAspectRatio,SortName,Path,SongCount,ChildCount,MediaSourceCount',
ImageTypeLimit: 1,
ParentId: item.Id,
SortBy: sortBy