Skip to content

Commit

Permalink
revert: fix: 修复bug * 2
Browse files Browse the repository at this point in the history
  • Loading branch information
helloplhm-qwq committed Jan 7, 2024
1 parent ac59ad5 commit c51162d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions modules/tx/refresh_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,14 @@ async def refresh():
else:
logger.error('未知的qqmusic_key格式')

if (config.read_config('module.tx.refresh_login.enable') and not variable.use_cookie_pool):
if (not variable.use_cookie_pool):
# changed refresh login config path
txconfig = config.read_config('module.tx')
refresh_login_info = txconfig['refresh_login']
txconfig['user']['refresh_login'] = refresh_login_info
txconfig.pop('refresh_login')
config.write_config('module.tx', txconfig)
refresh_login_info = txconfig.get('refresh_login')
if (refresh_login_info):
txconfig['user']['refresh_login'] = refresh_login_info
txconfig.pop('refresh_login')
config.write_config('module.tx', txconfig)

if (config.read_config('module.tx.user.refresh_login.enable') and not variable.use_cookie_pool):
scheduler.append('qqmusic_refresh_login', refresh,
Expand Down

0 comments on commit c51162d

Please sign in to comment.