diff options
author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2014-01-22 10:51:17 +0100 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2014-01-22 10:51:17 +0100 |
commit | c39f7013e1070a55729d143817690a282a5b3f10 (patch) | |
tree | 226dc3eca2c196a8d299f67fb8a75da1e4cb9bf2 /youtube_dl/extractor/gametrailers.py | |
parent | a4a028323e7a09c1d716de20c951f37b5b7c44f7 (diff) |
[gametrailers] Use the generic `_real_extract` provided by the base class
Diffstat (limited to 'youtube_dl/extractor/gametrailers.py')
-rw-r--r-- | youtube_dl/extractor/gametrailers.py | 11 |
1 files changed, 0 insertions, 11 deletions
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="(?P<mgid>mgid:.*?)"', - r'data-contentId=\'(?P<mgid>mgid:.*?)\''], - webpage, 'mgid') - return self._get_videos_info(mgid) |