beagle r4751 - trunk/beagle/beagled



Author: dbera
Date: Sun May 11 01:49:31 2008
New Revision: 4751
URL: http://svn.gnome.org/viewvc/beagle?rev=4751&view=rev

Log:
Fix extract-content to work with the fixed FilterFactory.FilterIndexable.


Modified:
   trunk/beagle/beagled/ExtractContent.cs

Modified: trunk/beagle/beagled/ExtractContent.cs
==============================================================================
--- trunk/beagle/beagled/ExtractContent.cs	(original)
+++ trunk/beagle/beagled/ExtractContent.cs	Sun May 11 01:49:31 2008
@@ -123,9 +123,9 @@
 
 		watch.Start ();
 		if (! FilterFactory.FilterIndexable (indexable, out filter)) {
-			Console.WriteLine ("No filter for {0}", indexable.MimeType);
 			indexable.Cleanup ();
-			return;
+			indexable.NoContent = true;
+			filter = null;
 		}
 		watch.Stop ();
 
@@ -137,7 +137,7 @@
 		Indexable generated_indexable;
 
 		bool first = true;
-		if (filter.HasGeneratedIndexable) {
+		if (filter != null && filter.HasGeneratedIndexable) {
 			while (filter.GenerateNextIndexable (out generated_indexable)) {
 				if (generated_indexable == null)
 					continue;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]