From 25a0cc44b981e7783da9380559b69054fd418003 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20P=C5=AFlp=C3=A1n?= Date: Sun, 29 Jun 2014 20:33:46 +0200 Subject: [PATCH] [teachertube:user] fix regex --- youtube_dl/extractor/teachertube.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/teachertube.py b/youtube_dl/extractor/teachertube.py index 73b4a3634..1a438e1e4 100644 --- a/youtube_dl/extractor/teachertube.py +++ b/youtube_dl/extractor/teachertube.py @@ -99,7 +99,7 @@ class TeacherTubeUserIE(InfoExtractor): urls = [] webpage = self._download_webpage(url, user_id) urls.extend(re.findall( - r'"sidebar_thumb_time">[0-9:]+\s+', + r'"sidebar_thumb_time">[0-9:]+\s+', webpage)) pages = re.findall(r'/ajax-user/user-videos/%s\?page=([0-9]+)' % user_id, webpage)[1:-1] @@ -107,7 +107,7 @@ class TeacherTubeUserIE(InfoExtractor): more = 'http://www.teachertube.com/ajax-user/user-videos/%s?page=%s' % (user_id, p) webpage = self._download_webpage(more, user_id, 'Downloading page %s/%s' % (p, len(pages) + 1)) urls.extend(re.findall( - r'"sidebar_thumb_time">[0-9:]+\s+', + r'"sidebar_thumb_time">[0-9:]+\s+', webpage)) entries = [] -- 2.22.2