From d297106ed5bb9aacb834e1d6300b4242a1f26464 Mon Sep 17 00:00:00 2001 From: Niels Giesen Date: Thu, 9 Oct 2014 08:08:43 +0200 Subject: [PATCH 1/2] Fix false positive in nrcnext --- recipes/nrc_next.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/nrc_next.recipe b/recipes/nrc_next.recipe index c2b61caef3..2ca7dbddab 100644 --- a/recipes/nrc_next.recipe +++ b/recipes/nrc_next.recipe @@ -39,7 +39,7 @@ class NRCNext(BasicNewsRecipe): br['password'] = self.password response2 = br.submit() raw = response2.get_data() - if 'ingelogd' not in raw: # in body class + if 'niet ingelogd' not in raw: # in body class raise ValueError('Failed to login, check username and password') epubraw = None for today in (date.today(), date.today() - timedelta(days=1),): From bf796d6503e668b18ce8619675736f0f62234a0a Mon Sep 17 00:00:00 2001 From: Niels Giesen Date: Thu, 9 Oct 2014 08:10:51 +0200 Subject: [PATCH 2/2] Fix false positive in nrcnext --- recipes/nrc_next.recipe | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/nrc_next.recipe b/recipes/nrc_next.recipe index 2ca7dbddab..da2daab40b 100644 --- a/recipes/nrc_next.recipe +++ b/recipes/nrc_next.recipe @@ -39,7 +39,7 @@ class NRCNext(BasicNewsRecipe): br['password'] = self.password response2 = br.submit() 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') epubraw = None for today in (date.today(), date.today() - timedelta(days=1),):