Merge branch 'nrcnextfixfalsepositive' of https://github.com/pft/calibre

This commit is contained in:
Kovid Goyal 2014-10-09 11:46:03 +05:30
commit 667ca4adde

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 '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),):