Skip to content

Commit d6ec232

Browse files
feat: 添加视频浏览任务 (#275)
1 parent 019cd28 commit d6ec232

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

utils/api/sign.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,25 @@ class BrowseSpecialPage(BaseSign):
268268
URL_SIGN = 'https://api-alpha.vip.miui.com/mtop/planet/vip/member/addCommunityGrowUpPointByActionV2'
269269

270270

271+
class BrowseVideoPost(BaseSign):
272+
"""
273+
浏览指定视频流超过5分钟
274+
"""
275+
NAME = "浏览指定视频流超过5分钟"
276+
277+
PARAMS = {
278+
'ref': 'vipAccountShortcut',
279+
'pathname': '/mio/detail',
280+
'version': 'dev.231026',
281+
'miui_vip_a_ph': "{miui_vip_a_ph}"
282+
}
283+
DATA = {
284+
'action': 'BROWSE_VIDEO_POST',
285+
'miui_vip_a_ph': "{miui_vip_a_ph}"
286+
}
287+
URL_SIGN = 'https://api-alpha.vip.miui.com/mtop/planet/vip/member/addCommunityGrowUpPointByActionV2'
288+
289+
271290
class BoardFollow(BaseSign):
272291
"""
273292
加入小米圈子
@@ -329,6 +348,7 @@ class CarrotPull(BaseSign):
329348
# 注册签到任务
330349
BaseSign.AVAILABLE_SIGNS[CheckIn.NAME] = CheckIn
331350
BaseSign.AVAILABLE_SIGNS[BrowsePost.NAME] = BrowsePost
351+
BaseSign.AVAILABLE_SIGNS[BrowseVideoPost.NAME] = BrowseVideoPost
332352
BaseSign.AVAILABLE_SIGNS[BrowseUserPage.NAME] = BrowseUserPage
333353
BaseSign.AVAILABLE_SIGNS[BrowseSpecialPage.NAME] = BrowseSpecialPage
334354
BaseSign.AVAILABLE_SIGNS[BoardFollow.NAME] = BoardFollow

utils/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ class Account(BaseModel):
7373
"""社区浏览个人主页10秒,启用功能意味着你愿意自行承担相关风险"""
7474
BrowsePost: bool = False
7575
"""社区浏览帖子10秒,启用功能意味着你愿意自行承担相关风险"""
76+
BrowseVideoPost: bool = False
77+
"""社区浏览视频帖子5分钟,启用功能意味着你愿意自行承担相关风险"""
7678
ThumbUp: bool = False
7779
"""点赞帖子,启用功能意味着你愿意自行承担相关风险"""
7880
BrowseSpecialPage: bool = False

0 commit comments

Comments
 (0)