Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Commit 47b575b

Browse files
committed
Merge remote-tracking branch 'original/master'
2 parents e087164 + 8489a87 commit 47b575b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

geeknote/oauth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ def login(self):
190190
{'oauth_token': self.tmpOAuthToken})
191191

192192
# parse hpts and hptsh from page content
193-
hpts = re.search('.*"hpts":"(.*?)"', response.data)
194-
hptsh = re.search('.*"hptsh":"(.*?)"', response.data)
193+
hpts = re.search('.*\("hpts"\)\.value.*?"(.*?)"', response.data)
194+
hptsh = re.search('.*\("hptsh"\)\.value.*?"(.*?)"', response.data)
195195

196196
if response.status != 200:
197197
logging.error("Unexpected response status "

0 commit comments

Comments
 (0)