- title = self._html_search_regex(r'<title>([^<]*)</title>',
- webpage,
- 'title')
- regex = r"""<div *class=['"]video_img[^>]*data-url=['"]([^'"]*\.jpg)['"]"""
- thumbnail = self._html_search_regex(regex, webpage, '')
- regex = r"""<video *[^>]*src=['"]([^'"]*)['"]""",
- video_url = self._html_search_regex(regex, webpage, '')
+ title = self._html_search_regex(
+ r'<title>([^<]+)</title>', webpage, 'title')
+ thumbnail = self._html_search_regex(
+ r'<div[^>]+class=(?P<q1>[\'"]).*\bvideo_img\b.*(?P=q1)[^>]+data-url=(?P<q2>[\'"])(?P<url>[^\'"]+)(?P=q2)',
+ webpage, 'thumbnail', fatal=False, group='url')
+ videos = self._parse_html5_media_entries(url, webpage, video_id)
+ info = videos[0]