[banshee] [Banshee.Collection] Fix importing of non-local dirs
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [Banshee.Collection] Fix importing of non-local dirs
- Date: Thu, 18 Mar 2010 03:26:02 +0000 (UTC)
commit 6ac0bbade6920aa9f9fe58b9b6d331ada3abca1a
Author: Gabriel Burt <gabriel burt gmail com>
Date: Wed Mar 17 20:17:15 2010 -0700
[Banshee.Collection] Fix importing of non-local dirs
.../DatabaseImportManager.cs | 2 +-
.../Banshee.Collection/ImportManager.cs | 17 ++++++-----------
2 files changed, 7 insertions(+), 12 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseImportManager.cs b/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseImportManager.cs
index 03afd5d..7d04bae 100644
--- a/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseImportManager.cs
+++ b/src/Core/Banshee.Services/Banshee.Collection.Database/DatabaseImportManager.cs
@@ -158,7 +158,7 @@ namespace Banshee.Collection.Database
public DatabaseTrackInfo ImportTrack (SafeUri uri)
{
- if (!IsWhiteListedFile (uri.LocalPath)) {
+ if (!IsWhiteListedFile (uri.AbsoluteUri)) {
return null;
}
diff --git a/src/Core/Banshee.Services/Banshee.Collection/ImportManager.cs b/src/Core/Banshee.Services/Banshee.Collection/ImportManager.cs
index a321572..11518bb 100644
--- a/src/Core/Banshee.Services/Banshee.Collection/ImportManager.cs
+++ b/src/Core/Banshee.Services/Banshee.Collection/ImportManager.cs
@@ -92,23 +92,18 @@ namespace Banshee.Collection
#region Public API
- public virtual void Enqueue (UriList uris)
+ public override void Enqueue (string path)
{
CreateUserJob ();
-
- foreach (string path in uris.LocalPaths) {
- base.Enqueue (path);
- }
- }
-
- public override void Enqueue (string source)
- {
- Enqueue (new UriList (source));
+ base.Enqueue (path);
}
public void Enqueue (string [] paths)
{
- Enqueue (new UriList (paths));
+ CreateUserJob ();
+ foreach (string path in paths) {
+ base.Enqueue (path);
+ }
}
public bool IsImportInProgress {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]