[banshee] CoverArt: If cache folder missing, clear last fetch time too
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] CoverArt: If cache folder missing, clear last fetch time too
- Date: Sun, 3 Apr 2011 18:28:03 +0000 (UTC)
commit 0f4c0fb98e07a95419c67d20d4aecbb66e703908
Author: Gabriel Burt <gabriel burt gmail com>
Date: Sun Apr 3 13:26:38 2011 -0500
CoverArt: If cache folder missing, clear last fetch time too
.../Banshee.Collection.Gui/ArtworkManager.cs | 2 ++
.../Banshee.CoverArt/CoverArtJob.cs | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs
index aff1d7e..f8fe24b 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs
@@ -41,6 +41,7 @@ using Hyena.Data.Sqlite;
using Banshee.Base;
using Banshee.IO;
+using Banshee.Configuration;
using Banshee.ServiceStack;
namespace Banshee.Collection.Gui
@@ -426,6 +427,7 @@ namespace Banshee.Collection.Gui
if (count == 0) {
try {
ServiceManager.DbConnection.Execute ("DELETE FROM CoverArtDownloads");
+ DatabaseConfigurationClient.Client.Set<DateTime> ("last_cover_art_scan", DateTime.MinValue);
Log.InformationFormat ("Reset CoverArtDownloads table so missing artwork will get fetched");
} catch {}
}
diff --git a/src/Extensions/Banshee.CoverArt/Banshee.CoverArt/CoverArtJob.cs b/src/Extensions/Banshee.CoverArt/Banshee.CoverArt/CoverArtJob.cs
index 3eeadad..cee72d4 100644
--- a/src/Extensions/Banshee.CoverArt/Banshee.CoverArt/CoverArtJob.cs
+++ b/src/Extensions/Banshee.CoverArt/Banshee.CoverArt/CoverArtJob.cs
@@ -62,7 +62,7 @@ namespace Banshee.CoverArt
// Since we do last_scan - retry_every, avoid out-of-range error by ensuring
// the last_scan date isn't already MinValue
if (last_scan == DateTime.MinValue) {
- last_scan = DateTime.Now - TimeSpan.FromDays (300);
+ last_scan = DateTime.Now - TimeSpan.FromDays (365*50);
}
CountCommand = new HyenaSqliteCommand (@"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]