aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/shared/video-playlist/video-playlist.model.ts7
-rw-r--r--client/src/assets/images/default-playlist.jpgbin0 -> 2554 bytes
2 files changed, 6 insertions, 1 deletions
diff --git a/client/src/app/shared/video-playlist/video-playlist.model.ts b/client/src/app/shared/video-playlist/video-playlist.model.ts
index ec8013e89..7e311aa54 100644
--- a/client/src/app/shared/video-playlist/video-playlist.model.ts
+++ b/client/src/app/shared/video-playlist/video-playlist.model.ts
@@ -51,7 +51,12 @@ export class VideoPlaylist implements ServerVideoPlaylist {
51 this.privacy = hash.privacy 51 this.privacy = hash.privacy
52 52
53 this.thumbnailPath = hash.thumbnailPath 53 this.thumbnailPath = hash.thumbnailPath
54 this.thumbnailUrl = absoluteAPIUrl + hash.thumbnailPath 54
55 if (this.thumbnailPath) {
56 this.thumbnailUrl = absoluteAPIUrl + hash.thumbnailPath
57 } else {
58 this.thumbnailUrl = window.location.origin + '/client/assets/images/default-playlist.jpg'
59 }
55 60
56 this.videosLength = hash.videosLength 61 this.videosLength = hash.videosLength
57 62
diff --git a/client/src/assets/images/default-playlist.jpg b/client/src/assets/images/default-playlist.jpg
new file mode 100644
index 000000000..978fb16f2
--- /dev/null
+++ b/client/src/assets/images/default-playlist.jpg
Binary files differ