This commit is contained in:
Default
2025-05-06 10:39:12 +08:00
parent 68e0a40329
commit 3c31c4d4b2
4 changed files with 27 additions and 22 deletions

View File

@@ -5,6 +5,7 @@ declare(strict_types=1);
namespace app\task\crawler\youzhi;
use app\model\ChapterModel;
use app\task\crawler\CrawlerConfig;
use app\task\crawler\youzhi\page\Site;
use microserver\QueueManage;
use storage\StorageCore;
@@ -66,12 +67,7 @@ class Scheduler
return $this->Site;
}
public $arrExcludeCategory = [
'体育',
'福利',
'伦理',
'伦理片',
];
/**
* create a site-wide craw task
@@ -110,7 +106,7 @@ class Scheduler
continue;
}
if (in_array($arrCategory['v_category_name'], $this->arrExcludeCategory)) {
if (in_array($arrCategory['v_category_name'], CrawlerConfig::$arrExcludeVideoCategory)) {
continue;
}