fix sites

This commit is contained in:
jxxghp
2023-06-07 21:35:23 +08:00
parent ab86eaf59a
commit 0bc0059638
4 changed files with 21 additions and 8 deletions

View File

@ -24,6 +24,11 @@ class TorrentLeech:
self._proxy = settings.PROXY
def search(self, keyword: str, page: int = 0) -> Tuple[bool, List[dict]]:
if StringUtils.is_chinese(keyword):
# 不支持中文
return True, []
if keyword:
url = self._searchurl % (self._indexer.get('domain'), quote(keyword))
else: