Skip to content

Commit

Permalink
Quick player fix (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuylar authored Dec 13, 2023
1 parent f8c51e9 commit caa6177
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LightTube/Views/Shared/Player.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ else
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase
})),
storyboard: {
type: "yt_l1",
src: "@Html.Raw(Model.Player.Storyboard.Levels[0].ToString())"
@if (Model.Player.Storyboard.Levels.ContainsKey(0))
{
@:storyboard:{type:"yt_l1",src:"@Html.Raw(Model.Player.Storyboard.Levels[0].ToString())"}
}
};
videoInfo.endscreen.onClickHandler = item => {
Expand Down

0 comments on commit caa6177

Please sign in to comment.