[\s\r]*
]*>[\s]*([^<]*)', webpage) or None
- duration = int_or_none(self._html_search_meta('video:duration', webpage, 'duration', default=False)) or int_or_none(
- self._html_search_regex(r'videoInfo[^=]*=[^{]*{[^}]*dur:([^,}]*?),', webpage, 'duration', default=None))
+ default=None, fatal=False)
+ tags = re.findall(r'
([^<]*?)', get_element_by_class("w_views", webpage))
view_count_fb = view_count_fb[0] if view_count_fb else None
view_count = int_or_none(self._html_search_regex(r'Views:[^<]*([^<]*?)<\/strong>', webpage, 'view_count',
- default=None)) or int_or_none(view_count_fb)
+ default=None, fatal=False)) or int_or_none(view_count_fb)
comment_count = int_or_none(
- self._html_search_regex(r'Comments:[^<]*([^<]*?)<\/strong>', webpage, 'comment_count',
- default=None) or
- self._html_search_regex(r']+id="cmt_num"[^>]*>([^<]+?)<\/span>', webpage, 'comment_count', default=None))
+ self._html_search_regex(r'Comments:[^<]*([^<]*?)<\/strong>|]+id="cmt_num"[^>]*>(['
+ r'^<]+?)<\/span>', webpage, 'comment_count',
+ default=None, fatal=False))
average_rating = float_or_none(
self._html_search_regex(r'{[\s\r]*\$\("#rateYo"\).rateYo\({[^}]*rating:\s*([^,]*?),[^}.]*}',
- webpage, 'average_rating', default=None))
- thumbnail_link = self._html_search_regex(r'videoInfo[\s]*=[\s]*{[^}]*img:[\s]*(?:"|\')([^"]*?)(?:"|\')', webpage,
- 'thumbnail', default=None)
- thumbnail = urljoin("https://www.vidlii.com/", thumbnail_link)
+ webpage, 'average_rating', default=None, fatal=False))
+ thumbnail_link = videoInfo_dict.get("img")
+ thumbnail = urljoin('https://www.vidlii.com/', thumbnail_link)
video_type = self._og_search_property('type', webpage, 'type')
return {
@@ -115,7 +122,7 @@ class VidliiIE(InfoExtractor):
'title': title,
'description': description,
'uploader': uploader,
- 'url': url,
+ 'url': video_url,
'uploader_url': uploader_url,
'upload_date': upload_date,
'categories': categories,