diff --git a/app/modules/indexer/spider/__init__.py b/app/modules/indexer/spider/__init__.py index 4c7017f7..b8b98dc3 100644 --- a/app/modules/indexer/spider/__init__.py +++ b/app/modules/indexer/spider/__init__.py @@ -732,7 +732,7 @@ class TorrentSpider: try: # 解析站点文本对象 if self.encoding: - html_doc = PyQuery(html_text.encode('utf-8')) + html_doc = PyQuery(html_text.encode(self.encoding)) else: html_doc = PyQuery(html_text) # 种子筛选器