diff --git a/youtube_dl/extractor/redtube.py b/youtube_dl/extractor/redtube.py index b9d6ecfc7..879bcf81d 100644 --- a/youtube_dl/extractor/redtube.py +++ b/youtube_dl/extractor/redtube.py @@ -90,8 +90,9 @@ class RedTubeIE(InfoExtractor): upload_date = unified_strdate(self._search_regex( r']+>ADDED ([^<]+)<', webpage, 'upload date', fatal=False)) - duration = int_or_none(self._search_regex( - '', webpage, 'duration', default=None)) + duration = int_or_none(self._og_search_property( + 'video:duration', webpage, default=None) or self._search_regex( + r'videoDuration\s*:\s*(\d+)', webpage, 'duration', default=None)) view_count = str_to_int(self._search_regex( (r']*>Views\s*]*>\s*([\d,.]+)', r']*>VIEWS\s*\s*\s*([\d,.]+)'),