瀏覽代碼

Minor update to crawler.

wibyweb 3 年之前
父節點
當前提交
55fb0c3b84
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      c/cr.c

+ 2 - 1
c/cr.c

@@ -656,7 +656,8 @@ int main(int argc, char **argv)
 
 				int skip = 0, titlechanged = 0, escape = 0, escapetotal = 0, redirected = 0;
 				//Check if noindex and size
-				if(((noindex == 0 /*&& bodysize < 1900000*/ && bodysize > 10) || (noindex == 0 /*&& bodysize < 1900000*/ && descriptionsize > 10)) && response_code == 200 && alreadydone==0) 
+				//if(((noindex == 0 /*&& bodysize < 1900000*/ && bodysize > 10) || (noindex == 0 /*&& bodysize < 1900000*/ && descriptionsize > 10)) && response_code == 200 && alreadydone==0) 
+				if((emptytitle == 0 || descriptionsize > 0 || bodysize > 0) && response_code == 200 && alreadydone==0 && noindex == 0)
 				{
 					//=================Allocate memory for the parsed text from htmlparse()
 					//title = (char*)calloc(titlesize+1,sizeof(char));