[weboob] [PATCH 1/1] Correction du bug 1447 : Recuperation du titre des videos dans h1

Loic Bontonou lobotomi51 at gmail.com
Tue Oct 28 11:33:45 CET 2014


Signed-off-by: Loic Bontonou <loic.bontonou at gmail.com>
---
 modules/arretsurimages/pages.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/arretsurimages/pages.py b/modules/arretsurimages/pages.py
index 6b24b16..91321f8 100644
--- a/modules/arretsurimages/pages.py
+++ b/modules/arretsurimages/pages.py
@@ -32,7 +32,7 @@ class IndexPage(Page):
     def iter_videos(self):
         videos = self.document.getroot().cssselect("div[class=bloc-contenu-8]")
         for div in videos:
-            title = self.parser.select(div, 'h1 a', 1).text_content().replace('"', '')
+            title = self.parser.select(div, 'h1', 1).text_content().replace('  ', ' ')
             m = re.match(r'/contenu.php\?id=(.*)', div.find('a').attrib['href'])
             _id = ''
             if m:
-- 
1.9.1




More information about the weboob mailing list