Browse Source

Add date created to folder type

master
jeffvli 3 years ago
committed by Jeff
parent
commit
8432b8fe3c
  1. 1
      src/api/api.ts
  2. 1
      src/api/jellyfinApi.ts
  3. 1
      src/types.ts

1
src/api/api.ts

@ -274,6 +274,7 @@ const normalizeFolder = (item: any) => {
return {
id: item.id,
title: item.name || item.title,
created: item.DateCreated,
isDir: true,
image: getCoverArtUrl(item, legacyAuth, 150),
type: Item.Folder,

1
src/api/jellyfinApi.ts

@ -193,6 +193,7 @@ const normalizeFolder = (item: any) => {
return {
id: item.Id,
title: item.Name,
created: item.DateCreated,
isDir: true,
image: getCoverArtUrl(item, 350),
type: Item.Folder,

1
src/types.ts

@ -100,6 +100,7 @@ export interface ArtistInfo {
export interface Folder {
id: string;
title: string;
created: string;
isDir?: boolean;
image: string;
type: Item.Folder;

Loading…
Cancel
Save