[weboob] [PATCH 1/1] [cragr] Bug fix to use web site instead of mobile website for ca-centrest, and probably others (Fix #1035)

Kitof git at kitof.net
Mon Jul 15 13:43:12 CEST 2013


Signed-off-by: Kitof <git at kitof.net>
---
 modules/cragr/web/pages.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/cragr/web/pages.py b/modules/cragr/web/pages.py
index d8222f3..2390625 100644
--- a/modules/cragr/web/pages.py
+++ b/modules/cragr/web/pages.py
@@ -32,7 +32,7 @@ class HomePage(BasePage):
     def get_post_url(self):
         for script in self.document.xpath('//script'):
             text = script.text
-            if text is None or not 'CCPTE' in text:
+            if text is None:
                 continue
 
             m = re.search(r'var chemin = "([^"]+)"', text, re.MULTILINE)
-- 
1.8.1.4




More information about the weboob mailing list