summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Burt <gabriel.burt@gmail.com>2011-04-01 18:50:18 -0500
committerGabriel Burt <gabriel.burt@gmail.com>2011-04-01 18:50:18 -0500
commita2a69d85e4882d23ebe20173d2446f3af57c6432 (patch)
tree271dde5b7f7a914eeaf6b797b09c1d970e4b5e09
parent54949e82697baf621564ddbdd1289e06151b5c25 (diff)
ArtworkManager: Clear art fetch info if cache dir missing
So if you have your music and db saved but lose your ~/.cache/media-art/ dirctory, Banshee will start re-fetching your album art.
-rw-r--r--src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs
index cba8ec835..aff1d7e0e 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Collection.Gui/ArtworkManager.cs
@@ -423,6 +423,13 @@ namespace Banshee.Collection.Gui
}
}
+ if (count == 0) {
+ try {
+ ServiceManager.DbConnection.Execute ("DELETE FROM CoverArtDownloads");
+ Log.InformationFormat ("Reset CoverArtDownloads table so missing artwork will get fetched");
+ } catch {}
+ }
+
Directory.Delete (legacy_root_path, true);
Log.InformationFormat ("Migrated {0} files in {1}s", count, DateTime.Now.Subtract(started).TotalSeconds);
}