From 2ab020445accf4a200b99f1c55cb90b9b8fdd398 Mon Sep 17 00:00:00 2001 From: borg-0300 Date: Thu, 31 May 2007 17:03:02 +0000 Subject: [PATCH] bugfix, i think - http://www.yacy-forum.de/viewtopic.php?t=4059 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3777 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/plasma/plasmaSwitchboardQueue.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/de/anomic/plasma/plasmaSwitchboardQueue.java b/source/de/anomic/plasma/plasmaSwitchboardQueue.java index 4a39f14dd..b376650aa 100644 --- a/source/de/anomic/plasma/plasmaSwitchboardQueue.java +++ b/source/de/anomic/plasma/plasmaSwitchboardQueue.java @@ -50,7 +50,6 @@ import java.net.MalformedURLException; import java.util.ArrayList; import java.util.Date; -import de.anomic.plasma.plasmaURL; import de.anomic.index.indexURLEntry; import de.anomic.kelondro.kelondroBase64Order; import de.anomic.kelondro.kelondroException; @@ -351,7 +350,7 @@ public class plasmaSwitchboardQueue { } // check profile - if ((!profile().indexText()) && (!profile().indexMedia())) { + if (!profile().indexText() && !profile().indexMedia()) { return "Indexing_Not_Allowed"; } @@ -397,7 +396,7 @@ public class plasmaSwitchboardQueue { * this method returns null if the answer is 'YES'! * if the answer is 'NO' (do not index), it returns a string with the reason * to reject the crawling demand in clear text - * + * * This function is used by plasmaSwitchboard#processResourceStack */ public final String shallIndexCacheForCrawler() { @@ -406,7 +405,9 @@ public class plasmaSwitchboardQueue { } // check profile - if ((!profile().indexText()) && (!profile().indexMedia())) { return "Indexing_Not_Allowed"; } + if (!profile().indexText() && !profile().indexMedia() && !profile().remoteIndexing()) { + return "Indexing_Not_Allowed"; + } final String nURL = normalizedURLString(); // -CGI access in request