From d6ec232e11597222afd620d837fd1dea01b3b1f4 Mon Sep 17 00:00:00 2001 From: Night-stars-1 <99261160+Night-stars-1@users.noreply.github.com> Date: Wed, 24 Apr 2024 22:55:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E6=B5=8F=E8=A7=88=E4=BB=BB=E5=8A=A1=20(#275)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/api/sign.py | 20 ++++++++++++++++++++ utils/config.py | 2 ++ 2 files changed, 22 insertions(+) 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