Improving thumbnails quality
This commit is contained in:
@@ -65,7 +65,10 @@ namespace FoxTube.Controls
|
||||
else
|
||||
{
|
||||
views.Text = $"{item.Statistics.ViewCount:0,0} views";
|
||||
info.Text = $"{XmlConvert.ToTimeSpan(item.ContentDetails.Duration)} | {Methods.GetAgo(item.Snippet.PublishedAt.Value)}";
|
||||
string dur = string.Empty;
|
||||
try { XmlConvert.ToTimeSpan(item.ContentDetails.Duration); }
|
||||
catch { }
|
||||
info.Text = $"{dur} | {Methods.GetAgo(item.Snippet.PublishedAt.Value)}";
|
||||
embed = false;
|
||||
}
|
||||
|
||||
@@ -76,7 +79,7 @@ namespace FoxTube.Controls
|
||||
try
|
||||
{
|
||||
avatar.ProfilePicture = new BitmapImage(new Uri(response1.Items[0].Snippet.Thumbnails.Medium.Url));
|
||||
thumbnail.Source = new BitmapImage(new Uri(item.Snippet.Thumbnails.Medium.Url));
|
||||
thumbnail.Source = new BitmapImage(new Uri((item.Snippet.Thumbnails.Maxres ?? item.Snippet.Thumbnails.Medium).Url));
|
||||
}
|
||||
catch { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user