From 868a7ce9c8b50bd64c8b5ae33fec77abfd25ef7c Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Thu, 21 Feb 2013 23:23:06 -0500 Subject: isolated clickonce dependancies --- .../ScheduledTasks/CurrentTrailerDownloadTask.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'MediaBrowser.Plugins.Trailers') diff --git a/MediaBrowser.Plugins.Trailers/ScheduledTasks/CurrentTrailerDownloadTask.cs b/MediaBrowser.Plugins.Trailers/ScheduledTasks/CurrentTrailerDownloadTask.cs index 90bd80caf6..47206fca03 100644 --- a/MediaBrowser.Plugins.Trailers/ScheduledTasks/CurrentTrailerDownloadTask.cs +++ b/MediaBrowser.Plugins.Trailers/ScheduledTasks/CurrentTrailerDownloadTask.cs @@ -39,12 +39,12 @@ namespace MediaBrowser.Plugins.Trailers.ScheduledTasks /// The cancellation token. /// The progress. /// Task. - protected override async Task ExecuteInternal(CancellationToken cancellationToken, IProgress progress) + protected override async Task ExecuteInternal(CancellationToken cancellationToken, IProgress progress) { // Get the list of trailers var trailers = await AppleTrailerListingDownloader.GetTrailerList(cancellationToken).ConfigureAwait(false); - progress.Report(new TaskProgress { PercentComplete = 1 }); + progress.Report(1); var trailersToDownload = trailers.Where(t => !IsOldTrailer(t.Video)).ToList(); @@ -74,7 +74,7 @@ namespace MediaBrowser.Plugins.Trailers.ScheduledTasks percent /= trailersToDownload.Count; // Leave 1% for DeleteOldTrailers - progress.Report(new TaskProgress { PercentComplete = (99 * percent) + 1 }); + progress.Report((99 * percent) + 1); } })); @@ -90,7 +90,7 @@ namespace MediaBrowser.Plugins.Trailers.ScheduledTasks DeleteOldTrailers(); } - progress.Report(new TaskProgress { PercentComplete = 100 }); + progress.Report(100); } /// -- cgit v1.2.3