Skip to content

Commit

Permalink
Merge pull request #1 from bujnlc8/hotfix/20220608
Browse files Browse the repository at this point in the history
Fix cache & update cookie
  • Loading branch information
bujnlc8 authored Jun 8, 2022
2 parents a9e289f + 86cf4af commit 361128d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autoload/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ endfunction

function! util#md5(s)
if executable('md5')
return system('echo -n "'.a:s.'" | md5')
return substitute(system('echo -n "'.a:s.'" | md5'), '\n', '', 'g')
elseif has('python')
let @b = a:s
python << EOF
Expand Down
2 changes: 1 addition & 1 deletion plugin/youdao.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
'Cookie': '',
}

Cookie = 'OUTFOX_SEARCH_USER_ID=1485736359@10.108.160.102; JSESSIONID=aaaJWUsucwEMl70lf-QXx; OUTFOX_SEARCH_USER_ID_NCOO=1086609560.8868542; '
Cookie = 'OUTFOX_SEARCH_USER_ID=-281936165@10.110.96.158; JSESSIONID=abcfry9dcEpsQ-4S-D5ey; OUTFOX_SEARCH_USER_ID_NCOO=1683608931.3345668; '

Url = 'https://fanyi.youdao.com/translate_o?smartresult=dict&smartresult=rule'

Expand Down

0 comments on commit 361128d

Please sign in to comment.