From c39f7013e1070a55729d143817690a282a5b3f10 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Wed, 22 Jan 2014 10:51:17 +0100 Subject: [PATCH] [gametrailers] Use the generic `_real_extract` provided by the base class --- youtube_dl/extractor/gametrailers.py | 11 ----------- 1 file changed, 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="(?Pmgid:.*?)"', - r'data-contentId=\'(?Pmgid:.*?)\''], - webpage, 'mgid') - return self._get_videos_info(mgid) -- 2.22.2