fix hddolby

This commit is contained in:
jxxghp
2025-03-02 08:51:09 +08:00
parent f91c43dde9
commit 147d980c54
2 changed files with 22 additions and 11 deletions
+4 -3
View File
@@ -47,7 +47,8 @@ class HDDolbySiteUserInfo(SiteParserBase):
self._user_traffic_page = None
self._user_detail_page = None
self._user_basic_page = "api/v1/user/data"
self._user_basic_params = {
self._user_basic_params = {}
self._user_basic_headers = {
"Content-Type": "application/json",
"Accept": "application/json, text/plain, */*"
}
@@ -80,7 +81,7 @@ class HDDolbySiteUserInfo(SiteParserBase):
if not html_text:
return None
detail = json.loads(html_text)
if not detail or detail.get("code") != "0":
if not detail or detail.get("status") != 0:
return
user_info = detail.get("data", {})
"""
@@ -125,7 +126,7 @@ class HDDolbySiteUserInfo(SiteParserBase):
if not html_text:
return None
seeding_info = json.loads(html_text)
if not seeding_info or seeding_info.get("status") != "0":
if not seeding_info or seeding_info.get("status") != 0:
return None
torrents = seeding_info.get("data", {})
page_seeding_size = 0