banshee r4911 - in trunk/banshee: . src/Extensions/Banshee.FileSystemQueue/Banshee.FileSystemQueue
- From: gburt svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r4911 - in trunk/banshee: . src/Extensions/Banshee.FileSystemQueue/Banshee.FileSystemQueue
- Date: Mon, 12 Jan 2009 03:48:29 +0000 (UTC)
Author: gburt
Date: Mon Jan 12 03:48:29 2009
New Revision: 4911
URL: http://svn.gnome.org/viewvc/banshee?rev=4911&view=rev
Log:
2009-01-11 Gabriel Burt <gabriel burt gmail com>
* src/Extensions/Banshee.FileSystemQueue/Banshee.FileSystemQueue/FileSystemQueueSource.cs:
Use SafeUri to unescape and get the file://-less path if possible, fixes
bug with Firefox launching us with a file:// playlist URI (BNC #456120)
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Extensions/Banshee.FileSystemQueue/Banshee.FileSystemQueue/FileSystemQueueSource.cs
Modified: trunk/banshee/src/Extensions/Banshee.FileSystemQueue/Banshee.FileSystemQueue/FileSystemQueueSource.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.FileSystemQueue/Banshee.FileSystemQueue/FileSystemQueueSource.cs (original)
+++ trunk/banshee/src/Extensions/Banshee.FileSystemQueue/Banshee.FileSystemQueue/FileSystemQueueSource.cs Mon Jan 12 03:48:29 2009
@@ -110,6 +110,14 @@
public void Enqueue (string path)
{
+ try {
+ SafeUri uri = new SafeUri (path);
+ if (uri.IsLocalPath && !String.IsNullOrEmpty (uri.LocalPath)) {
+ path = uri.LocalPath;
+ }
+ } catch {
+ }
+
lock (this) {
if (importer == null) {
importer = new DatabaseImportManager (this);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]