fix mtorrent
This commit is contained in:
parent
e37ac4da6a
commit
181d87f68e
@ -64,7 +64,8 @@ class MTorrentSpider:
|
|||||||
获取ApiKey
|
获取ApiKey
|
||||||
"""
|
"""
|
||||||
domain_host = StringUtils.get_url_host(self._domain)
|
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:
|
try:
|
||||||
res = RequestUtils(
|
res = RequestUtils(
|
||||||
headers={
|
headers={
|
||||||
|
Loading…
x
Reference in New Issue
Block a user