|
|
@@ -153,7 +153,7 @@ class Kobo:
|
|
|
parsed = urllib.parse.urlparse( signInUrl )
|
|
|
koboSignInUrl = parsed._replace( query = None, path = "/ww/en/signin/signin/kobo" ).geturl()
|
|
|
|
|
|
- match = re.search( r'href="/ww/en/signin/signin/kobo\?workflowId=([^"]+)"', htmlResponse )
|
|
|
+ match = re.search( r""" name="LogInModel.WorkflowId" type="hidden" value="([^"]+)" />""", htmlResponse )
|
|
|
if match is None:
|
|
|
raise KoboException( "Can't find the workflow ID in the login form. The page format might have changed." )
|
|
|
workflowId = html.unescape( match.group( 1 ) )
|