diff options
author | kontrollanten <6680299+kontrollanten@users.noreply.github.com> | 2022-10-24 14:48:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-24 14:48:03 +0200 |
commit | 38a3ccc7f8ad0ea94362b58c732af7c387ab46be (patch) | |
tree | ccbd200c4b95d0fcfa56b7d5fc3c9490887187b1 /shared/models | |
parent | 01a3c07a7913891d4830797403b3865d53f0af61 (diff) | |
download | PeerTube-38a3ccc7f8ad0ea94362b58c732af7c387ab46be.tar.gz PeerTube-38a3ccc7f8ad0ea94362b58c732af7c387ab46be.tar.zst PeerTube-38a3ccc7f8ad0ea94362b58c732af7c387ab46be.zip |
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 <me@florianbigard.com>
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/videos/playlist/video-exist-in-playlist.model.ts | 10 |
1 files changed, 9 insertions, 1 deletions
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 @@ | |||
1 | export type VideosExistInPlaylists = { | 1 | export type VideosExistInPlaylists = { |
2 | [videoId: number ]: VideoExistInPlaylist[] | 2 | [videoId: number ]: VideoExistInPlaylist[] |
3 | } | 3 | } |
4 | export type CachedVideosExistInPlaylists = { | ||
5 | [videoId: number ]: CachedVideoExistInPlaylist[] | ||
6 | } | ||
4 | 7 | ||
5 | export type VideoExistInPlaylist = { | 8 | export type CachedVideoExistInPlaylist = { |
6 | playlistElementId: number | 9 | playlistElementId: number |
7 | playlistId: number | 10 | playlistId: number |
8 | startTimestamp?: number | 11 | startTimestamp?: number |
9 | stopTimestamp?: number | 12 | stopTimestamp?: number |
10 | } | 13 | } |
14 | |||
15 | export type VideoExistInPlaylist = CachedVideoExistInPlaylist & { | ||
16 | playlistDisplayName: string | ||
17 | playlistShortUUID: string | ||
18 | } | ||