diff --git a/utils/api/sign.py b/utils/api/sign.py index 6027c8c..6f6ce49 100644 --- a/utils/api/sign.py +++ b/utils/api/sign.py @@ -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 diff --git a/utils/config.py b/utils/config.py index 725bf7d..2440d40 100644 --- a/utils/config.py +++ b/utils/config.py @@ -73,6 +73,8 @@ class Account(BaseModel): """社区浏览个人主页10秒,启用功能意味着你愿意自行承担相关风险""" BrowsePost: bool = False """社区浏览帖子10秒,启用功能意味着你愿意自行承担相关风险""" + BrowseVideoPost: bool = False + """社区浏览视频帖子5分钟,启用功能意味着你愿意自行承担相关风险""" ThumbUp: bool = False """点赞帖子,启用功能意味着你愿意自行承担相关风险""" BrowseSpecialPage: bool = False