aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-05 15:35:58 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-08-07 08:58:29 +0200
commit6fad8e51c47b9d07bea99b777c1f55c10f6d576d (patch)
tree09b33652d565a6dbe70e413b88c64aa611f7f4b6 /client/src
parenta75292db788d400ba84933693f5f98a83f3aaa60 (diff)
downloadPeerTube-6fad8e51c47b9d07bea99b777c1f55c10f6d576d.tar.gz
PeerTube-6fad8e51c47b9d07bea99b777c1f55c10f6d576d.tar.zst
PeerTube-6fad8e51c47b9d07bea99b777c1f55c10f6d576d.zip
Handle playlist oembed
Diffstat (limited to 'client/src')
-rw-r--r--client/src/standalone/videos/embed.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts
index a7fb087b1..8d1720f75 100644
--- a/client/src/standalone/videos/embed.ts
+++ b/client/src/standalone/videos/embed.ts
@@ -438,7 +438,7 @@ export class PeerTubeEmbed {
438 return videoInfo 438 return videoInfo
439 }) 439 })
440 440
441 const [ videoInfo, serverTranslations, captionsResponse, config, PeertubePlayerManagerModule ] = await Promise.all([ 441 const [ videoInfoTmp, serverTranslations, captionsResponse, config, PeertubePlayerManagerModule ] = await Promise.all([
442 videoInfoPromise, 442 videoInfoPromise,
443 this.translationsPromise, 443 this.translationsPromise,
444 captionsPromise, 444 captionsPromise,
@@ -446,6 +446,8 @@ export class PeerTubeEmbed {
446 this.PeertubePlayerManagerModulePromise 446 this.PeertubePlayerManagerModulePromise
447 ]) 447 ])
448 448
449 const videoInfo: VideoDetails = videoInfoTmp
450
449 const PeertubePlayerManager = PeertubePlayerManagerModule.PeertubePlayerManager 451 const PeertubePlayerManager = PeertubePlayerManagerModule.PeertubePlayerManager
450 const videoCaptions = await this.buildCaptions(serverTranslations, captionsResponse) 452 const videoCaptions = await this.buildCaptions(serverTranslations, captionsResponse)
451 453