Fix dailymotion "search" return bug message
Bug(dailymotion): Not enough elements found (1 expected) with selector "div.sd_video_previewtwig" Signed-off-by: Vincent Texier <vit@free.fr>
This commit is contained in:
parent
cf9ac90386
commit
aea0b6a6b7
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ from .video import DailymotionVideo
|
|||
class IndexPage(Page):
|
||||
def iter_videos(self):
|
||||
for div in self.parser.select(self.document.getroot(), 'div.sd_video_listitem'):
|
||||
smalldiv = self.parser.select(div, 'div.sd_video_previewtwig', 1)
|
||||
smalldiv = self.parser.select(div, 'div.sd_video_preview', 1)
|
||||
_id = smalldiv.attrib.get('data-id', None)
|
||||
|
||||
if _id is None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue