Skip to content

Commit

Permalink
fix verify bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Samueli924 committed Apr 26, 2022
1 parent 9f232ad commit c0817d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/chaoxing.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __init__(self, usernm, passwd, debug, show):
def init_explorer(self):
self.session = requests.session()
self.session.headers = {
'User-Agent': f'Dalvik/2.1.0 (Linux; U; Android {random.randint(9, 12)}; MI{random.randint(10, 12)} Build/SKQ1.210216.001) (device:MI{random.randint(10, 12)}) Language/zh_CN com.chaoxing.mobile/ChaoXingStudy_3_5.1.4_android_phone_614_74(@Kalimdor)_{secrets.token_hex(16)}',
'User-Agent': f'Dalvik/2.1.0 (Linux; U; Android {random.randint(9, 12)}; MI{random.randint(10, 12)} Build/SKQ1.210216.001) (device:MI{random.randint(10, 12)}) Language/zh_CN com.chaoxing.mobile/ChaoXingStudy_3_5.1.4_android_phone_614_74 (@Kalimdor)_{secrets.token_hex(16)}',
'X-Requested-With': 'com.chaoxing.mobile'
}

Expand Down
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def do_work(chaoxingAPI):
chaoxingAPI.speed,
chaoxingAPI.get_current_ms
)
ft.pause(1, 3)
ft.pause(10, 13)
chaoxing.speed = set_speed # 预防ERR


Expand Down Expand Up @@ -154,7 +154,7 @@ def do_work(chaoxingAPI):
logger.debug("当前设置速率:"+str(chaoxing.speed)+"倍速")
if not disable_adopt and set_speed == 1: # Only God and I knew how it worked.
if not use_default and not use_adopt:
set_adopt=input("是否启用自适应速率(当播放速率为1且视频支持倍速播放时,自动切换为两倍速)\n!注意 该功能可能存在风险!输入(Y/y/Yes/yes)启用").lower()
set_adopt = input("是否启用自适应速率(当播放速率为1且视频支持倍速播放时,自动切换为两倍速)\n!注意 该功能可能存在风险!输入(Y/y/Yes/yes)启用").lower()
if use_default or use_adopt or set_adopt.startswith('y'):
adopt = True
else:
Expand Down

0 comments on commit c0817d2

Please sign in to comment.