mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-02-03 10:25:52 +00:00
add CRAWL_META_ONLY option
This commit is contained in:
parent
dc55dcb9b5
commit
79663c84db
@ -22,3 +22,5 @@ define('CRAWL_PAGE_LIMIT', 10);
|
|||||||
define('CRAWL_PAGE_SECONDS_OFFSET', 3600);
|
define('CRAWL_PAGE_SECONDS_OFFSET', 3600);
|
||||||
|
|
||||||
define('CRAWL_URL_REGEXP', '/^.*$/ui');
|
define('CRAWL_URL_REGEXP', '/^.*$/ui');
|
||||||
|
|
||||||
|
define('CRAWL_META_ONLY', false);
|
||||||
|
@ -67,7 +67,7 @@ foreach ($db->getPageQueue(CRAWL_PAGE_LIMIT, time() - CRAWL_PAGE_SECONDS_OFFSET)
|
|||||||
Filter::pageTitle($title->item(0)->nodeValue),
|
Filter::pageTitle($title->item(0)->nodeValue),
|
||||||
Filter::pageDescription($description),
|
Filter::pageDescription($description),
|
||||||
Filter::pageKeywords($keywords),
|
Filter::pageKeywords($keywords),
|
||||||
Filter::pageData($url->getContent()),
|
CRAWL_META_ONLY ? '' : Filter::pageData($content),
|
||||||
time());
|
time());
|
||||||
|
|
||||||
// Update images
|
// Update images
|
||||||
|
Loading…
x
Reference in New Issue
Block a user