mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-01-06 08:05:28 +01:00
Fix for changed login behavior for the fanfiktion.de adapter
This commit is contained in:
parent
95c64e2e95
commit
22d42ed4c8
1 changed files with 2 additions and 3 deletions
|
|
@ -106,9 +106,8 @@ class FanFiktionDeAdapter(BaseSiteAdapter):
|
|||
loginUrl = 'https://ssl.fanfiktion.de/'
|
||||
logger.debug("Will now login to URL (%s) as (%s)" % (loginUrl,
|
||||
params['nickname']))
|
||||
d = self._postUrl(loginUrl,params)
|
||||
|
||||
if "Login erfolgreich" not in d : #Member Account
|
||||
soup = bs.BeautifulSoup(self._postUrl(loginUrl,params))
|
||||
if not soup.find('a', title='Logout'):
|
||||
logger.info("Failed to login to URL %s as %s" % (loginUrl,
|
||||
params['nickname']))
|
||||
raise exceptions.FailedToLogin(url,params['nickname'])
|
||||
|
|
|
|||
Loading…
Reference in a new issue