[banshee/stable-1.8] [Dap.MassStorage] Fix extensionless files (bgo#631687)
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/stable-1.8] [Dap.MassStorage] Fix extensionless files (bgo#631687)
- Date: Fri, 15 Oct 2010 20:26:54 +0000 (UTC)
commit ef422db7a45918e68f2cf194752356e43fff3fa1
Author: Gabriel Burt <gabriel burt gmail com>
Date: Fri Oct 15 15:23:03 2010 -0500
[Dap.MassStorage] Fix extensionless files (bgo#631687)
If a track being transferred to a DAP wasn't local (eg sftp) then the
filename on the DAP didn't get an extension.
.../Banshee.Dap.MassStorage/MassStorageSource.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs b/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs
index 79dad0f..b669a6b 100644
--- a/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs
+++ b/src/Dap/Banshee.Dap.MassStorage/Banshee.Dap.MassStorage/MassStorageSource.cs
@@ -489,7 +489,7 @@ namespace Banshee.Dap.MassStorage
if (track.PrimarySourceId == DbId)
return;
- SafeUri new_uri = new SafeUri (GetTrackPath (track, System.IO.Path.GetExtension (fromUri.LocalPath)));
+ SafeUri new_uri = new SafeUri (GetTrackPath (track, System.IO.Path.GetExtension (fromUri)));
// If it already is on the device but it's out of date, remove it
//if (File.Exists(new_uri) && File.GetLastWriteTime(track.Uri.LocalPath) > File.GetLastWriteTime(new_uri))
//RemoveTrack(new MassStorageTrackInfo(new SafeUri(new_uri)));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]