banshee r4883 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Collection
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4883 - in trunk/banshee: . src/Core/Banshee.Services/Banshee.Collection
- Date: Wed, 7 Jan 2009 19:53:12 +0000 (UTC)
Author: gburt
Date: Wed Jan 7 19:53:12 2009
New Revision: 4883
URL: http://svn.gnome.org/viewvc/banshee?rev=4883&view=rev
Log:
2009-01-07 Gabriel Burt <gabriel burt gmail com>
* src/Core/Banshee.Services/Banshee.Collection/RescanPipeline.cs: Fix
issue with the Rescan tool where it popped up/removed lots and lots of
progress bars (UserJobs) during a given import, which caused a ton of
unnecessary CPU usage (BGO #552561).
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Core/Banshee.Services/Banshee.Collection/RescanPipeline.cs
Modified: trunk/banshee/src/Core/Banshee.Services/Banshee.Collection/RescanPipeline.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.Services/Banshee.Collection/RescanPipeline.cs (original)
+++ trunk/banshee/src/Core/Banshee.Services/Banshee.Collection/RescanPipeline.cs Wed Jan 7 19:53:12 2009
@@ -49,7 +49,7 @@
// 4. Remove tracks that aren't on disk and weren't found to have moved
//
// Approach:
- // 1. For each file in the source's directory, find oraphend db track if any, or add if new
+ // 1. For each file in the source's directory, find orphaned db track if any, or add if new
// and update if modified; update the LastScannedAt stamp
// 2. Remove all db tracks from the database that weren't scanned (LastScannedAt < scan_started)
public class RescanPipeline : QueuePipeline<string>
@@ -185,7 +185,8 @@
// If we still couldn't find it, try to import it
if (similar_track == null) {
//Hyena.Log.DebugFormat ("Couldn't find it, so queueing to import it");
- ServiceManager.Get<Banshee.Library.LibraryImportManager> ().Enqueue (file_path);
+ status = System.IO.Path.GetFileNameWithoutExtension (file_path);
+ ServiceManager.Get<Banshee.Library.LibraryImportManager> ().ImportTrack (file_path);
}
}
} catch (Exception e) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]