feat: 添加视频浏览任务 (#275)

This commit is contained in:
Night-stars-1 2024-04-24 22:55:27 +08:00 committed by GitHub
parent 019cd28e29
commit d6ec232e11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 22 additions and 0 deletions

View File

@ -268,6 +268,25 @@ class BrowseSpecialPage(BaseSign):
URL_SIGN = 'https://api-alpha.vip.miui.com/mtop/planet/vip/member/addCommunityGrowUpPointByActionV2'
class BrowseVideoPost(BaseSign):
"""
浏览指定视频流超过5分钟
"""
NAME = "浏览指定视频流超过5分钟"
PARAMS = {
'ref': 'vipAccountShortcut',
'pathname': '/mio/detail',
'version': 'dev.231026',
'miui_vip_a_ph': "{miui_vip_a_ph}"
}
DATA = {
'action': 'BROWSE_VIDEO_POST',
'miui_vip_a_ph': "{miui_vip_a_ph}"
}
URL_SIGN = 'https://api-alpha.vip.miui.com/mtop/planet/vip/member/addCommunityGrowUpPointByActionV2'
class BoardFollow(BaseSign):
"""
加入小米圈子
@ -329,6 +348,7 @@ class CarrotPull(BaseSign):
# 注册签到任务
BaseSign.AVAILABLE_SIGNS[CheckIn.NAME] = CheckIn
BaseSign.AVAILABLE_SIGNS[BrowsePost.NAME] = BrowsePost
BaseSign.AVAILABLE_SIGNS[BrowseVideoPost.NAME] = BrowseVideoPost
BaseSign.AVAILABLE_SIGNS[BrowseUserPage.NAME] = BrowseUserPage
BaseSign.AVAILABLE_SIGNS[BrowseSpecialPage.NAME] = BrowseSpecialPage
BaseSign.AVAILABLE_SIGNS[BoardFollow.NAME] = BoardFollow

View File

@ -73,6 +73,8 @@ class Account(BaseModel):
"""社区浏览个人主页10秒启用功能意味着你愿意自行承担相关风险"""
BrowsePost: bool = False
"""社区浏览帖子10秒启用功能意味着你愿意自行承担相关风险"""
BrowseVideoPost: bool = False
"""社区浏览视频帖子5分钟启用功能意味着你愿意自行承担相关风险"""
ThumbUp: bool = False
"""点赞帖子,启用功能意味着你愿意自行承担相关风险"""
BrowseSpecialPage: bool = False