X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fgamestar.py;h=590ccf5266d61e67772a1276a83bfdb6919abc63;hb=027eb5a6b041a91ca7fdd61826daaea24bec1cfb;hp=50f8fc7e77c83ad63a05e9a312a9ff5b3afd8983;hpb=895ba7d1dd5b92259272198976d150847014b644;p=youtube-dl diff --git a/youtube_dl/extractor/gamestar.py b/youtube_dl/extractor/gamestar.py index 50f8fc7e7..590ccf526 100644 --- a/youtube_dl/extractor/gamestar.py +++ b/youtube_dl/extractor/gamestar.py @@ -29,13 +29,11 @@ class GameStarIE(InfoExtractor): } def _real_extract(self, url): - mobj = re.match(self._VALID_URL, url) - video_id = mobj.group('id') - + video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) og_title = self._og_search_title(webpage) - title = og_title.replace(' - Video bei GameStar.de', '').strip() + title = re.sub(r'\s*- Video (bei|-) GameStar\.de$', '', og_title) url = 'http://gamestar.de/_misc/videos/portal/getVideoUrl.cfm?premium=0&videoId=' + video_id