refactor(string): split utilities by responsibility

This commit is contained in:
jxxghp
2026-08-15 08:03:55 +08:00
parent a2117bafc8
commit 96118e73e7
99 changed files with 1608 additions and 1424 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ from app.db.oper.systemconfig import SystemConfigOper
from app.runtime.log import logger
from app.schemas import MediaType
from app.adapters.network.http import RequestUtils, AsyncRequestUtils
from app.domain.string import StringUtils
from app.domain import site as site_rules
class HddolbySpider:
@@ -71,7 +71,7 @@ class HddolbySpider:
if indexer:
self._indexerid = indexer.get('id')
self._domain = indexer.get('domain')
self._domain_host = StringUtils.get_url_domain(self._domain)
self._domain_host = site_rules.extract_domain(self._domain)
self._name = indexer.get('name')
if indexer.get('proxy'):
self._proxy = settings.PROXY