[banshee/1.5.1-fixes: 38/56] [Podcasts] Fix download all downloading items again



commit 01d47e4a1efc1df73ccef55cca58b160ae7c08a1
Author: Pratik Patel <pkpatel88 gmail com>
Date:   Thu Nov 12 17:29:50 2009 -0800

    [Podcasts] Fix download all downloading items again
    
    Fixes BGO #535116
    
    Signed-off-by: Gabriel Burt <gabriel burt gmail com>

 .../Banshee.Podcasting.Gui/PodcastActions.cs       |    3 +--
 .../Migo/Migo.Syndication/FeedEnclosure.cs         |    3 ++-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastActions.cs b/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastActions.cs
index 1a137e1..6e84c12 100644
--- a/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastActions.cs
+++ b/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Gui/PodcastActions.cs
@@ -559,8 +559,7 @@ namespace Banshee.Podcasting.Gui
         private void OnPodcastItemDownload (object sender, EventArgs e)
         {
             foreach (PodcastTrackInfo pi in PodcastTrackInfo.From (GetSelectedItems ())) {
-                if (pi.Enclosure.DownloadStatus != FeedDownloadStatus.Downloaded)
-                    pi.Enclosure.AsyncDownload ();
+                pi.Enclosure.AsyncDownload ();
             }
         }
         
diff --git a/src/Libraries/Migo/Migo.Syndication/FeedEnclosure.cs b/src/Libraries/Migo/Migo.Syndication/FeedEnclosure.cs
index ca99a32..98baa5a 100644
--- a/src/Libraries/Migo/Migo.Syndication/FeedEnclosure.cs
+++ b/src/Libraries/Migo/Migo.Syndication/FeedEnclosure.cs
@@ -117,8 +117,9 @@ namespace Migo.Syndication
         
         public void AsyncDownload ()
         {
-            if (DownloadedAt == DateTime.MinValue)
+            if (DownloadedAt == DateTime.MinValue && DownloadStatus == FeedDownloadStatus.None) {
                 Manager.QueueDownload (this);
+            }
         }
         
         public void CancelAsyncDownload ()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]