X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=youtube_dl%2Fextractor%2Fthvideo.py;h=496f15d80b478f94bc2aac86c3d20417e2b09925;hb=02b386f80abc16f5334e980c2fb729b0cc69a0d6;hp=0ae20ea30bc307e014f63bc31c1288945b9a4046;hpb=457ac58cc72a0b7161a0369a8f282f38ff0f2f93;p=youtube-dl diff --git a/youtube_dl/extractor/thvideo.py b/youtube_dl/extractor/thvideo.py index 0ae20ea30..496f15d80 100644 --- a/youtube_dl/extractor/thvideo.py +++ b/youtube_dl/extractor/thvideo.py @@ -26,8 +26,7 @@ class THVideoIE(InfoExtractor): } def _real_extract(self, url): - mobj = re.match(self._VALID_URL, url) - video_id = mobj.group('id') + video_id = self._match_id(url) # extract download link from mobile player page webpage_player = self._download_webpage( @@ -71,13 +70,15 @@ class THVideoPlaylistIE(InfoExtractor): } def _real_extract(self, url): - webpage = self._download_webpage(url, 'playlist') - mobj = re.match(self._VALID_URL, url) - list_id = mobj.group('id') - list_title = self._html_search_regex(r'