nemo r93 - trunk/metadata
- From: arj svn gnome org
- To: svn-commits-list gnome org
- Subject: nemo r93 - trunk/metadata
- Date: Mon, 10 Mar 2008 15:57:01 +0000 (GMT)
Author: arj
Date: Mon Mar 10 15:57:01 2008
New Revision: 93
URL: http://svn.gnome.org/viewvc/nemo?rev=93&view=rev
Log:
Partly fix #520790
- Consider files with the ending .JPG or .Avi as respectively jpeg and
avi
Thanks to Bret Towe for the report
Modified:
trunk/metadata/MetadataStore.cs
Modified: trunk/metadata/MetadataStore.cs
==============================================================================
--- trunk/metadata/MetadataStore.cs (original)
+++ trunk/metadata/MetadataStore.cs Mon Mar 10 15:57:01 2008
@@ -186,7 +186,8 @@
int index = filename.LastIndexOf('.');
string extension = index != -1 ? filename.Substring(index) : "";
-
+ extension = extension.ToLower();
+
foreach (string v in includes)
if (extension == v) {
found = true;
@@ -918,7 +919,7 @@
string extension = "";
int dot = path.LastIndexOf('.');
if (dot != -1)
- extension = path.Substring(dot + 1);
+ extension = path.Substring(dot + 1).ToLower();
long db_id = database.get_file_type_id(extension);
return db_id;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]