banshee r4391 - in trunk/banshee: . src/Extensions/Banshee.Podcasting/Banshee.Podcasting
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4391 - in trunk/banshee: . src/Extensions/Banshee.Podcasting/Banshee.Podcasting
- Date: Mon, 18 Aug 2008 02:04:01 +0000 (UTC)
Author: gburt
Date: Mon Aug 18 02:04:01 2008
New Revision: 4391
URL: http://svn.gnome.org/viewvc/banshee?rev=4391&view=rev
Log:
2008-08-17 Gabriel Burt <gabriel burt gmail com>
* src/Extensions/Banshee.Podcasting/Banshee.Podcasting/PodcastService.cs:
Only update a feed on startup if it hasn't been updated in over an hour.
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Extensions/Banshee.Podcasting/Banshee.Podcasting/PodcastService.cs
Modified: trunk/banshee/src/Extensions/Banshee.Podcasting/Banshee.Podcasting/PodcastService.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.Podcasting/Banshee.Podcasting/PodcastService.cs (original)
+++ trunk/banshee/src/Extensions/Banshee.Podcasting/Banshee.Podcasting/PodcastService.cs Mon Aug 18 02:04:01 2008
@@ -199,9 +199,12 @@
MigrateLegacyIfNeeded ();
Banshee.Kernel.Scheduler.Schedule (new Banshee.Kernel.DelegateJob (delegate {
+ DateTime now = DateTime.Now;
foreach (Feed feed in Feed.Provider.FetchAll ()) {
- feed.Update ();
- RefreshArtworkFor (feed);
+ if ((now - feed.LastDownloadTime).TotalHours > 1) {
+ feed.Update ();
+ RefreshArtworkFor (feed);
+ }
}
}));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]