mirror of
https://github.com/iv-org/invidious.git
synced 2025-06-28 09:38:31 +00:00
Guard video against missing required info.
This commit is contained in:
parent
0c07e9d27a
commit
637aef87c8
@ -1,3 +1,4 @@
|
|||||||
|
<% if audio_streams && fmt_stream && preferred_captions && captions %>
|
||||||
<video style="outline:none;width:100%;background-color:#000" playsinline poster="<%= thumbnail %>"
|
<video style="outline:none;width:100%;background-color:#000" playsinline poster="<%= thumbnail %>"
|
||||||
id="player" class="on-video_player video-js player-style-<%= params.player_style %>"
|
id="player" class="on-video_player video-js player-style-<%= params.player_style %>"
|
||||||
preload="<% if params.preload %>auto<% else %>none<% end %>"
|
preload="<% if params.preload %>auto<% else %>none<% end %>"
|
||||||
@ -87,3 +88,4 @@
|
|||||||
%>
|
%>
|
||||||
</script>
|
</script>
|
||||||
<script src="/js/player.js?v=<%= ASSET_COMMIT %>"></script>
|
<script src="/js/player.js?v=<%= ASSET_COMMIT %>"></script>
|
||||||
|
<% end %>
|
||||||
|
Loading…
Reference in New Issue
Block a user