X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=youtube-dl;a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fteachertube.py;h=df5d5556fadf82c8dc680643389fdeccf989793f;hp=46d727d1de6743edcb99109b77caa49ebc1bf0c6;hb=dcdb292fddc82ae11f4c0b647815a45c88a6b6d5;hpb=11f75cac3db14681b306633a496e9aaae2cfc0a7 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*