Skip to content

Commit

Permalink
[gamestar] Fix title extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
Naglis Jonaitis committed Feb 26, 2015
1 parent e129c5b commit 7ab7c9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion youtube_dl/extractor/gamestar.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# coding: utf-8
from __future__ import unicode_literals

import re

from .common import InfoExtractor
from ..utils import (
int_or_none,
Expand Down Expand Up @@ -31,7 +33,7 @@ def _real_extract(self, 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

Expand Down

0 comments on commit 7ab7c9e

Please sign in to comment.