Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(sjtu): uploads and seeding #1730

Merged
merged 1 commit into from
Feb 23, 2024
Merged

fix(sjtu): uploads and seeding #1730

merged 1 commit into from
Feb 23, 2024

Conversation

echo094
Copy link
Contributor

@echo094 echo094 commented Feb 23, 2024

如下图所示,在/userdetails.php的返回数据中,做种数等相关内容表现为懒加载:

image

即需要通过额外的/viewtorrentsdetail.php查询信息。

commit 4d1d4b5 将上述数据的获取放回到了userExtendInfo(/userdetails.php)中,无法应对更新后的网站逻辑。

这里效仿 commit 103e212 ,将上述信息都放到userUploadedTorrents中查询。

根据 @lingjiameng 提供的示例可知,发种数对应的id为ka、做种数对应的id为ka1。其中,选择器规则需要进行修改,过滤规则无需修改。

@lingjiameng
Copy link

image
我不太懂,不过看了一下,上传应该是ka,有点奇葩 @echo094

@echo094
Copy link
Contributor Author

echo094 commented Feb 23, 2024

我不太懂,不过看了一下,上传应该是ka,有点奇葩

用ka3测试了一下,原先的filters可以正常得到数据,只需修改selector。

其实我也搞不懂为什么selector会失效(在加载完成的/userdetails.php页面里它又能正常匹配)。

@IITII IITII merged commit 36839e8 into pt-plugins:dev Feb 23, 2024
4 checks passed
@echo094 echo094 deleted the fix_sjtu_viewtorrentsdetail branch February 23, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants