From 8432b8fe3c18a29079781360d87deb1244991212 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Mon, 22 Nov 2021 18:27:10 -0800 Subject: [PATCH] Add date created to folder type --- src/api/api.ts | 1 + src/api/jellyfinApi.ts | 1 + src/types.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/src/api/api.ts b/src/api/api.ts index 8c4bdb1..a348c25 100644 --- a/src/api/api.ts +++ b/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, diff --git a/src/api/jellyfinApi.ts b/src/api/jellyfinApi.ts index 89b0de6..3f2b8d2 100644 --- a/src/api/jellyfinApi.ts +++ b/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, diff --git a/src/types.ts b/src/types.ts index 04ec823..0a6fa44 100644 --- a/src/types.ts +++ b/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;