From 2bae0435a84e0c6791b0e1f22ca25bb00b5781c2 Mon Sep 17 00:00:00 2001 From: carsten demming Date: Tue, 20 Feb 2018 21:48:36 +0100 Subject: [PATCH] - fixed regex to get duration --- youtube_dl/extractor/redtube.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,.]+)'),