- r'<span class="views">(\d+)</span>', webpage, 'view count', fatal=False))
+ r'class="views">(?:<noscript>)?\s*(\d+)\s*<',
+ webpage, 'view count', fatal=False))
+ comment_count = int_or_none(self._html_search_regex(
+ r'(\d+)</b> Comments?',
+ webpage, 'comment count', fatal=False, default=None))
+
+ formats = []
+ quality = qualities(['mp4', 'flv'])
+ for video_url in re.findall(r'<(?:source|video) src="([^"]+)"', webpage):
+ video_ext = determine_ext(video_url)
+ formats.append({
+ 'url': video_url,
+ 'format_id': video_ext,
+ 'quality': quality(video_ext),
+ })
+ self._sort_formats(formats)