mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-01-31 08:54:17 +00:00
remove abstraction
This commit is contained in:
parent
4801360a51
commit
fdd18de373
@ -176,7 +176,7 @@ define('CRAWL_PAGE_SECONDS_OFFSET', 60*60*24*30*12);
|
||||
* comma separated
|
||||
*
|
||||
*/
|
||||
define('CRAWL_PAGE_MIME_TYPE', 'text/html');
|
||||
define('CRAWL_PAGE_MIME', 'text/html');
|
||||
|
||||
/*
|
||||
* Index images match MIME types
|
||||
@ -184,7 +184,7 @@ define('CRAWL_PAGE_MIME_TYPE', 'text/html');
|
||||
* comma separated
|
||||
*
|
||||
*/
|
||||
define('CRAWL_IMAGE_MIME_TYPE', 'image/webp,image/png,image/gif,image/jpeg,image/ico');
|
||||
define('CRAWL_IMAGE_MIME', 'image/webp,image/png,image/gif,image/jpeg,image/ico');
|
||||
|
||||
/*
|
||||
* Renew image index by timing offset provided
|
||||
@ -296,7 +296,7 @@ define('CRAWL_MANIFEST', true);
|
||||
* Manifest API version compatibility
|
||||
*
|
||||
*/
|
||||
define('CRAWL_MANIFEST_API_VERSION', 0.5);
|
||||
define('CRAWL_MANIFEST_API_VERSION', 0.6);
|
||||
|
||||
/*
|
||||
* Set default auto-crawl status for new manifest added
|
||||
|
@ -250,7 +250,7 @@ try {
|
||||
}
|
||||
|
||||
// Skip image processing on MIME type not allowed in settings
|
||||
if (false === strpos(CRAWL_IMAGE_MIME_TYPE, $hostImageContentType)) {
|
||||
if (false === strpos(CRAWL_IMAGE_MIME, $hostImageContentType)) {
|
||||
|
||||
$hostImagesBanned += $db->updateHostImageTimeBanned($queueHostImage->hostImageId, time());
|
||||
|
||||
@ -324,7 +324,7 @@ try {
|
||||
}
|
||||
|
||||
// Skip page processing on MIME type not allowed in settings
|
||||
if (false === strpos(CRAWL_PAGE_MIME_TYPE, $contentType)) {
|
||||
if (false === strpos(CRAWL_PAGE_MIME, $contentType)) {
|
||||
|
||||
$hostPagesBanned += $db->updateHostPageTimeBanned($queueHostPage->hostPageId, time());
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
// Current version
|
||||
define('API_VERSION', 0.5);
|
||||
define('API_VERSION', 0.6);
|
||||
|
||||
// Load system dependencies
|
||||
require_once('../config/app.php');
|
||||
@ -132,9 +132,9 @@ if (API_ENABLED) {
|
||||
'crawlHostDefaultStatus' => CRAWL_HOST_DEFAULT_STATUS,
|
||||
'crawlHostDefaultMetaOnly' => CRAWL_HOST_DEFAULT_META_ONLY,
|
||||
'crawlHostPageSecondsOffset' => CRAWL_PAGE_SECONDS_OFFSET,
|
||||
'crawlHostPageMimeType' => CRAWL_PAGE_MIME_TYPE,
|
||||
'crawlHostPageMime' => CRAWL_PAGE_MIME,
|
||||
'crawlHostImageSecondsOffset' => CRAWL_IMAGE_SECONDS_OFFSET,
|
||||
'crawlHostImageMimeType' => CRAWL_IMAGE_MIME_TYPE,
|
||||
'crawlHostImageMime' => CRAWL_IMAGE_MIME,
|
||||
'cleanHostSecondsOffset' => CLEAN_HOST_SECONDS_OFFSET,
|
||||
'crawlRobotsDefaultRules' => CRAWL_ROBOTS_DEFAULT_RULES,
|
||||
'crawlRobotsPostfixRules' => CRAWL_ROBOTS_POSTFIX_RULES,
|
||||
|
@ -372,7 +372,7 @@ if (!empty($q)) {
|
||||
}
|
||||
|
||||
// Skip image processing on MIME type not allowed in settings
|
||||
if (false === strpos(CRAWL_IMAGE_MIME_TYPE, $hostImageContentType)) {
|
||||
if (false === strpos(CRAWL_IMAGE_MIME, $hostImageContentType)) {
|
||||
|
||||
$hostImageTimeBanned = time();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user