[weboob] [PATCH 1/1] fix bug dailymotion search returns nothing

Vincent Texier vit at free.fr
Thu Apr 17 21:15:17 CEST 2014


Signed-off-by: Vincent Texier <vit at free.fr>
---
 modules/dailymotion/pages.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/dailymotion/pages.py b/modules/dailymotion/pages.py
index 5da7aaa..f39d3d9 100644
--- a/modules/dailymotion/pages.py
+++ b/modules/dailymotion/pages.py
@@ -38,7 +38,7 @@ __all__ = ['IndexPage', 'VideoPage', 'KidsVideoPage']
 
 class IndexPage(BasePage):
     def iter_videos(self):
-        for div in self.parser.select(self.document.getroot(), 'div.pl_videos_videolistitem'):
+        for div in self.parser.select(self.document.getroot(), 'div.sd_video_listitem'):
             smalldiv = self.parser.select(div, 'div.sd_video_previewtwig', 1)
             _id = smalldiv.attrib.get('data-id', None)
 
-- 
1.7.9.5



More information about the weboob mailing list