mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Handling when caption_path is empty.
This commit is contained in:
parent
427ba5e9b6
commit
d3bb94e339
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ function VideoPage({videoFile, prevFile, nextFile, setFavorite, ...props}) {
|
|||
|
||||
let posterUrl = video.poster_path ? `${MEDIA_PATH}/${encodeURIComponent(video.poster_path)}` : null;
|
||||
let captionsUrl = video.caption_path ? `${MEDIA_PATH}/${encodeURIComponent(video.caption_path)}` : null;
|
||||
let vttCaptions = video.caption_path.endsWith('.vtt');
|
||||
let vttCaptions = video.caption_path && video.caption_path.endsWith('.vtt');
|
||||
|
||||
let description = 'No description available.';
|
||||
let viewCount = video.view_count;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue