1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-15 22:05:39 +00:00

[gametrailers] Use the generic _real_extract provided by the base class

This commit is contained in:
Jaime Marquínez Ferrándiz 2014-01-22 10:51:17 +01:00
parent a4a028323e
commit c39f7013e1

View file

@ -1,7 +1,5 @@
from __future__ import unicode_literals from __future__ import unicode_literals
import re
from .mtv import MTVServicesInfoExtractor from .mtv import MTVServicesInfoExtractor
@ -18,12 +16,3 @@ class GametrailersIE(MTVServicesInfoExtractor):
} }
_FEED_URL = 'http://www.gametrailers.com/feeds/mrss' _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)