mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-09-04 18:21:53 +00:00
rename method name
This commit is contained in:
parent
7e3248ca2c
commit
cbabea595b
@ -210,7 +210,7 @@ foreach ($db->getManifestCrawlQueue(CRAWL_MANIFEST_LIMIT, time() - CRAWL_MANIFES
|
|||||||
if (filter_var($hostURL, FILTER_VALIDATE_URL) && preg_match(CRAWL_URL_REGEXP, $hostURL)) {
|
if (filter_var($hostURL, FILTER_VALIDATE_URL) && preg_match(CRAWL_URL_REGEXP, $hostURL)) {
|
||||||
|
|
||||||
// Host not exists
|
// Host not exists
|
||||||
if (!$db->getHost(crc32($hostURL))) {
|
if (!$db->getHostByCRC32URL(crc32($hostURL))) {
|
||||||
|
|
||||||
// Get robots.txt if exists
|
// Get robots.txt if exists
|
||||||
$curl = new Curl($hostURL . '/robots.txt', CRAWL_CURLOPT_USERAGENT);
|
$curl = new Curl($hostURL . '/robots.txt', CRAWL_CURLOPT_USERAGENT);
|
||||||
@ -432,7 +432,7 @@ foreach ($db->getHostPageCrawlQueue(CRAWL_PAGE_LIMIT, time() - CRAWL_PAGE_SECOND
|
|||||||
$hostPageURI = Parser::uri($url);
|
$hostPageURI = Parser::uri($url);
|
||||||
|
|
||||||
// Host exists
|
// Host exists
|
||||||
if ($host = $db->getHost(crc32($hostURL->string))) {
|
if ($host = $db->getHostByCRC32URL(crc32($hostURL->string))) {
|
||||||
|
|
||||||
$hostStatus = $host->status;
|
$hostStatus = $host->status;
|
||||||
$hostNsfw = $host->nsfw;
|
$hostNsfw = $host->nsfw;
|
||||||
@ -1098,7 +1098,7 @@ foreach ($db->getHostPageCrawlQueue(CRAWL_PAGE_LIMIT, time() - CRAWL_PAGE_SECOND
|
|||||||
$hostPageURI = Parser::uri($link['ref']);
|
$hostPageURI = Parser::uri($link['ref']);
|
||||||
|
|
||||||
// Host exists
|
// Host exists
|
||||||
if ($host = $db->getHost(crc32($hostURL->string))) {
|
if ($host = $db->getHostByCRC32URL(crc32($hostURL->string))) {
|
||||||
|
|
||||||
$hostStatus = $host->status;
|
$hostStatus = $host->status;
|
||||||
$hostNsfw = $host->nsfw;
|
$hostNsfw = $host->nsfw;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user