]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[gametrailers] Use the generic `_real_extract` provided by the base class
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 22 Jan 2014 09:51:17 +0000 (10:51 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 22 Jan 2014 09:51:17 +0000 (10:51 +0100)
youtube_dl/extractor/gametrailers.py

index c1fdd770e006c9c4723857507c5f4fb9c4510787..66b3b50d46b4224b4f79dedbd98aad8d8e19bcac 100644 (file)
@@ -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)