mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +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:
|
if seeding_info.get("status") != 200:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user