From 38a3ccc7f8ad0ea94362b58c732af7c387ab46be Mon Sep 17 00:00:00 2001 From: kontrollanten <6680299+kontrollanten@users.noreply.github.com> Date: Mon, 24 Oct 2022 14:48:03 +0200 Subject: feat: show contained playlists under My videos (#5125) * feat: show contained playlists under My videos closes #4769 * refactor(server): remove unused types * fixes after code review * fix(client/video-miniature): add to playlist * fix(server/user/me): shortUUID response * Revert "fix(client/video-miniature): add to playlist" This reverts commit f1a0412391c7e2370b87df2594c9fe3f39a40ddc. * fix(client/PlaylistService): caching * Revert "fix(server/user/me): shortUUID response" This reverts commit e3f1ee4e335739b895bced938540c003df24af73. * Fix fetching playlists Co-authored-by: Chocobozzz --- shared/models/videos/playlist/video-exist-in-playlist.model.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'shared') diff --git a/shared/models/videos/playlist/video-exist-in-playlist.model.ts b/shared/models/videos/playlist/video-exist-in-playlist.model.ts index fc979c8c0..bc803a99c 100644 --- a/shared/models/videos/playlist/video-exist-in-playlist.model.ts +++ b/shared/models/videos/playlist/video-exist-in-playlist.model.ts @@ -1,10 +1,18 @@ export type VideosExistInPlaylists = { [videoId: number ]: VideoExistInPlaylist[] } +export type CachedVideosExistInPlaylists = { + [videoId: number ]: CachedVideoExistInPlaylist[] +} -export type VideoExistInPlaylist = { +export type CachedVideoExistInPlaylist = { playlistElementId: number playlistId: number startTimestamp?: number stopTimestamp?: number } + +export type VideoExistInPlaylist = CachedVideoExistInPlaylist & { + playlistDisplayName: string + playlistShortUUID: string +} -- cgit v1.2.3