diff --git a/youtube_dl/extractor/redtube.py b/youtube_dl/extractor/redtube.py index 45c4c6197..b9d6ecfc7 100644 --- a/youtube_dl/extractor/redtube.py +++ b/youtube_dl/extractor/redtube.py @@ -22,7 +22,7 @@ class RedTubeIE(InfoExtractor): 'ext': 'mp4', 'title': 'Sucked on a toilet', 'upload_date': '20110811', - 'duration': None, + 'duration': 596, 'view_count': int, 'age_limit': 18, } @@ -91,7 +91,7 @@ class RedTubeIE(InfoExtractor): r']+>ADDED ([^<]+)<', webpage, 'upload date', fatal=False)) duration = int_or_none(self._search_regex( - r'videoDuration\s*:\s*(\d+)', webpage, 'duration', default=None)) + '', webpage, 'duration', default=None)) view_count = str_to_int(self._search_regex( (r']*>Views\s*]*>\s*([\d,.]+)', r']*>VIEWS\s*\s*\s*([\d,.]+)'),