Deleted videos are now displayed
This commit is contained in:
@@ -50,11 +50,18 @@ namespace FoxTube.Controls
|
||||
VideosResource.ListRequest request = SecretsVault.Service.Videos.List("snippet,contentDetails,statistics,liveStreamingDetails");
|
||||
request.Id = id;
|
||||
item = (await request.ExecuteAsync()).Items[0];
|
||||
|
||||
|
||||
title.Text = item.Snippet.Title;
|
||||
channelName.Text = item.Snippet.ChannelTitle;
|
||||
|
||||
if (item.Snippet.LiveBroadcastContent == "live")
|
||||
if (item.Snippet.Title == "Deleted video")
|
||||
{
|
||||
ContextFlyout = null;
|
||||
Opacity = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
if (item.Snippet.LiveBroadcastContent == "live")
|
||||
{
|
||||
views.Text = $"{item.LiveStreamingDetails.ConcurrentViewers:0,0} {resources.GetString("/Cards/viewers")}";
|
||||
if (item.LiveStreamingDetails.ScheduledStartTime.HasValue && item.LiveStreamingDetails.ScheduledEndTime.HasValue)
|
||||
|
||||
Reference in New Issue
Block a user