DownloadAgent
This commit is contained in:
@@ -58,7 +58,7 @@ namespace FoxTube
|
||||
views.Text = string.Format("{0} views", item.Statistics.ViewCount);
|
||||
|
||||
string duration;
|
||||
if (item.ContentDetails.Duration != null || item.ContentDetails.Duration != "")
|
||||
if (!string.IsNullOrWhiteSpace(item.ContentDetails.Duration))
|
||||
{
|
||||
TimeSpan ts = XmlConvert.ToTimeSpan(item.ContentDetails.Duration);
|
||||
duration = string.Format("{0}{1:00}:{2:00} | ", ts.Hours == 0 ? "" : ts.Hours + ":", ts.Minutes, ts.Seconds);
|
||||
@@ -94,6 +94,9 @@ namespace FoxTube
|
||||
|
||||
avatar.ProfilePicture = new BitmapImage(new Uri(item1.Snippet.Thumbnails.Medium.Url));
|
||||
channelName.Text = item1.Snippet.Title;
|
||||
|
||||
if (SecretsVault.UserHistory.Contains(item.Id))
|
||||
watched.Visibility = Visibility.Visible;
|
||||
}
|
||||
|
||||
private async void Button_Click(object sender, RoutedEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user