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

Merge pull request #2944 from SegiH/showPlaylistItemCount

Show playlist item count
This commit is contained in:
Bill Thornton 2021-09-13 10:20:10 -04:00 committed by GitHub
commit 7c607cf47a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -108,7 +108,7 @@ import '../../elements/emby-button/emby-button';
let date; let date;
let count; let count;
const showFolderRuntime = item.Type === 'MusicAlbum' || item.MediaType === 'MusicArtist' || item.MediaType === 'Playlist' || item.MediaType === 'MusicGenre'; const showFolderRuntime = item.Type === 'MusicAlbum' || item.MediaType === 'MusicArtist' || item.Type === 'Playlist' || item.MediaType === 'Playlist' || item.MediaType === 'MusicGenre';
if (showFolderRuntime) { if (showFolderRuntime) {
count = item.SongCount || item.ChildCount; count = item.SongCount || item.ChildCount;

View file

@ -320,7 +320,7 @@ import { appRouter } from '../components/appRouter';
return apiClient.getItems(apiClient.getCurrentUserId(), modifyQueryWithFilters(instance, { return apiClient.getItems(apiClient.getCurrentUserId(), modifyQueryWithFilters(instance, {
StartIndex: startIndex, StartIndex: startIndex,
Limit: limit, Limit: limit,
Fields: 'PrimaryImageAspectRatio,SortName,Path', Fields: 'PrimaryImageAspectRatio,SortName,Path,SongCount,ChildCount',
ImageTypeLimit: 1, ImageTypeLimit: 1,
ParentId: item.Id, ParentId: item.Id,
SortBy: sortBy SortBy: sortBy