mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-19 19:46:55 +08:00
fix(parser): guard invalid tnode seeding json response
This commit is contained in:
@@ -63,7 +63,14 @@ class TNodeSiteUserInfo(SiteParserBase):
|
||||
"""
|
||||
解析用户做种信息
|
||||
"""
|
||||
seeding_info = json.loads(html_text)
|
||||
try:
|
||||
seeding_info = json.loads(html_text)
|
||||
except json.JSONDecodeError:
|
||||
return None
|
||||
|
||||
if not isinstance(seeding_info, dict):
|
||||
return None
|
||||
|
||||
if seeding_info.get("status") != 200:
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user