fix mtorrent

This commit is contained in:
jxxghp 2024-03-24 15:31:00 +08:00 committed by GitHub
parent e37ac4da6a
commit 181d87f68e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,7 +64,8 @@ class MTorrentSpider:
获取ApiKey
"""
domain_host = StringUtils.get_url_host(self._domain)
if not self.systemconfig.get(f"site.{domain_host}.apikey"):
self._apikey = self.systemconfig.get(f"site.{domain_host}.apikey")
if not self._apikey:
try:
res = RequestUtils(
headers={