fix bug dailymotion search returns nothing

Signed-off-by: Vincent Texier <vit@free.fr>
This commit is contained in:
Vincent Texier 2014-04-17 21:15:17 +02:00 committed by Florent
commit ea574adcdb

View file

@ -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)