X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=inline;f=youtube_dl%2Fextractor%2Fteachertube.py;h=df5d5556fadf82c8dc680643389fdeccf989793f;hb=f8ae2c7f307e4f1bd5f3057e5c15a2a154eeea05;hp=46d727d1de6743edcb99109b77caa49ebc1bf0c6;hpb=1a30deca50d6256bb833aee672d5055d72319aca;p=youtube-dl diff --git a/youtube_dl/extractor/teachertube.py b/youtube_dl/extractor/teachertube.py index 46d727d1d..df5d5556f 100644 --- a/youtube_dl/extractor/teachertube.py +++ b/youtube_dl/extractor/teachertube.py @@ -1,4 +1,4 @@ -# -*- coding: utf-8 -*- +# coding: utf-8 from __future__ import unicode_literals import re @@ -57,9 +57,7 @@ class TeacherTubeIE(InfoExtractor): }] def _real_extract(self, url): - mobj = re.match(self._VALID_URL, url) - video_id = mobj.group('id') - + video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) title = self._html_search_meta('title', webpage, 'title', fatal=True) @@ -106,6 +104,13 @@ class TeacherTubeUserIE(InfoExtractor): \s*