From: Jaime Marquínez Ferrándiz Date: Wed, 22 Jan 2014 09:51:17 +0000 (+0100) Subject: [gametrailers] Use the generic `_real_extract` provided by the base class X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=c39f7013e1070a55729d143817690a282a5b3f10;p=youtube-dl [gametrailers] Use the generic `_real_extract` provided by the base class --- diff --git a/youtube_dl/extractor/gametrailers.py b/youtube_dl/extractor/gametrailers.py index c1fdd770e..66b3b50d4 100644 --- a/youtube_dl/extractor/gametrailers.py +++ b/youtube_dl/extractor/gametrailers.py @@ -1,7 +1,5 @@ from __future__ import unicode_literals -import re - from .mtv import MTVServicesInfoExtractor @@ -18,12 +16,3 @@ class GametrailersIE(MTVServicesInfoExtractor): } _FEED_URL = 'http://www.gametrailers.com/feeds/mrss' - - def _real_extract(self, url): - mobj = re.match(self._VALID_URL, url) - video_id = mobj.group('id') - webpage = self._download_webpage(url, video_id) - mgid = self._search_regex([r'data-video="(?Pmgid:.*?)"', - r'data-contentId=\'(?Pmgid:.*?)\''], - webpage, 'mgid') - return self._get_videos_info(mgid)