this.isLocal = hash.isLocal
this.displayName = hash.displayName
+
this.description = hash.description
this.privacy = hash.privacy
this.thumbnailPath = hash.thumbnailPath
- this.thumbnailUrl = absoluteAPIUrl + hash.thumbnailPath
+
+ if (this.thumbnailPath) {
+ this.thumbnailUrl = absoluteAPIUrl + hash.thumbnailPath
+ } else {
+ this.thumbnailUrl = window.location.origin + '/client/assets/images/default-playlist.jpg'
+ }
this.videosLength = hash.videosLength
}
this.privacy.label = peertubeTranslate(this.privacy.label, translations)
+
+ if (this.type.id === VideoPlaylistType.WATCH_LATER) {
+ this.displayName = peertubeTranslate(this.displayName, translations)
+ }
}
}