[f-spot] Work around broken mime-type detection.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Work around broken mime-type detection.
- Date: Thu, 22 Jul 2010 13:16:53 +0000 (UTC)
commit 7f902496f8fd6a93ff7d66cfdf006edfd70d187e
Author: Ruben Vermeersch <ruben savanne be>
Date: Thu Jul 22 15:16:21 2010 +0200
Work around broken mime-type detection.
https://bugzilla.gnome.org/show_bug.cgi?id=624781
src/Utils/Metadata.cs | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/Utils/Metadata.cs b/src/Utils/Metadata.cs
index 325f311..09489ec 100644
--- a/src/Utils/Metadata.cs
+++ b/src/Utils/Metadata.cs
@@ -14,6 +14,11 @@ namespace FSpot.Utils
var info = gfile.QueryInfo ("standard::content-type", FileQueryInfoFlags.None, null);
var mime = info.ContentType;
+ if (mime.StartsWith ("application/x-extension-")) {
+ // Works around broken metadata detection - https://bugzilla.gnome.org/show_bug.cgi?id=624781
+ mime = String.Format ("taglib/{0}", mime.Substring (24));
+ }
+
// Parse file
var res = new GIOTagLibFileAbstraction () { Uri = uri };
var sidecar_uri = uri.ReplaceExtension (".xmp");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]