Fix false positive in nrcnext

This commit is contained in:
Niels Giesen 2014-10-09 08:10:51 +02:00
parent d297106ed5
commit bf796d6503

View File

@ -39,7 +39,7 @@ class NRCNext(BasicNewsRecipe):
br['password'] = self.password br['password'] = self.password
response2 = br.submit() response2 = br.submit()
raw = response2.get_data() raw = response2.get_data()
if 'niet ingelogd' not in raw: # in body class if 'niet ingelogd' in raw: # in body class
raise ValueError('Failed to login, check username and password') raise ValueError('Failed to login, check username and password')
epubraw = None epubraw = None
for today in (date.today(), date.today() - timedelta(days=1),): for today in (date.today(), date.today() - timedelta(days=1),):