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

feat(dicmusic): 增加升级条件 #1348

Merged
merged 3 commits into from
Feb 16, 2023
Merged

feat(dicmusic): 增加升级条件 #1348

merged 3 commits into from
Feb 16, 2023

Conversation

amorphobia
Copy link
Contributor

说明

海豚的升级条件包含“独特分组”和“完美FLAC”两个数据,其中“独特分组”应该是 GazelleJSONAPI 站都有的数据,“完美FLAC”是音乐站有的数据。

Level Requirement

GazelleJSONAPI

  • 增加了“独特分组(uniqueGroups)”、“发布数(uploads)”和“下载数(downloads)”的获取

dicmusic

  • 增加了“完美FLAC(perfectFLAC)”的获取
  • 增加了升级条件

Elite Torrent Master 和 Elite Torrent Master Plus

海豚用户等级中,这两个级别的要求几乎一样,只是 Elite Torrent Master 对于“完美FLAC”的数量可以包含 WAV 和 DSD 格式,而 Elite Torrent Master Plus 只能是 FLAC 格式,但出于以下几点,在代码里的要求是完全一样的:

  1. API 无法简单获取 WAV 和 DSD 数量
  2. 站点鼓励 FLAC,WAV 不再记入“完美”
  3. DSD 格式实际数量相当少,全站只有几十个

因此对于大多数用户,这两个级别的升级条件可以认为是相同的

@ted423
Copy link
Collaborator

ted423 commented Feb 16, 2023

@amorphobia 我个人倾向于音乐站的自己上去看下就好了🌚
因为改了ts,需要测下

@amorphobia
Copy link
Contributor Author

@ted423 代码都是简单的添加,不过测试是应该的,我自己测试过是 OK 的,需要再提供什么测试结果吗?

@amorphobia
Copy link
Contributor Author

效果

图片
图片
图片

控制台获取数据

图片

@ted423
Copy link
Collaborator

ted423 commented Feb 16, 2023

@amorphobia 我指的我编译测试下...

@amorphobia
Copy link
Contributor Author

@ted423 麻烦你了

@ted423
Copy link
Collaborator

ted423 commented Feb 16, 2023

@amorphobia 是只弄了DIC?我看ops和红似乎没改

@amorphobia
Copy link
Contributor Author

@ted423 我只有 dic...

@ted423 ted423 merged commit 24869b9 into pt-plugins:dev Feb 16, 2023
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.

None yet

2 participants