Skip to content

Commit

Permalink
Fix YT player not loading
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxocube committed Jan 7, 2025
1 parent 9a9246a commit 604d111
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions MediaFeeder/MediaFeeder/Components/Pages/Video.razor
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<span style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle;">
@if (VideoObject != null)
{
@VideoObject?.Name
@VideoObject.Name
}
else
{
Expand All @@ -25,9 +25,9 @@
</TitleTemplate>
<SubtitleTemplate>
<span class="ant-page-header-heading-sub-title">
<a href="@($"/folder/{VideoObject?.Subscription.ParentFolder?.Id}")">@VideoObject?.Subscription.ParentFolder?.Name</a>
<a href="@($"/folder/{VideoObject?.Subscription?.ParentFolder?.Id}")">@VideoObject?.Subscription?.ParentFolder?.Name</a>
&gt;
<a href="@($"/subscription/{VideoObject?.Subscription.Id}")">@VideoObject?.Subscription.Name</a>
<a href="@($"/subscription/{VideoObject?.Subscription?.Id}")">@VideoObject?.Subscription?.Name</a>
</span>
</SubtitleTemplate>

Expand Down
3 changes: 2 additions & 1 deletion MediaFeeder/MediaFeeder/Components/Pages/Video.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public sealed partial class Video : IDisposable
private IProvider? Provider { get; set; }
private PlaybackSession? PlaybackSession { get; set; }

private int UpNextCount { get; set; }
private int UpNextCount { get; set; } = 0;
private TimeSpan UpNextDuration { get; set; } = TimeSpan.Zero;
private TimeSpan TotalDuration { get; set; } = TimeSpan.Zero;

Expand Down Expand Up @@ -63,6 +63,7 @@ protected override async Task OnParametersSetAsync()
}
else
{
UpNextCount = 0;
UpNextDuration = TimeSpan.Zero;
}

Expand Down

0 comments on commit 604d111

Please sign in to comment.