aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorNaglis Jonaitis <njonaitis@gmail.com>2015-02-26 16:22:05 +0200
committerNaglis Jonaitis <njonaitis@gmail.com>2015-02-26 16:22:05 +0200
commit7ab7c9e93290f575747c1790c4aecf2055227a8d (patch)
treeff23d641fd7a016e25f71c97766708ec385246e6 /youtube_dl
parente129c5bc0de4913564c1e1a62baae4bd0073824c (diff)
[gamestar] Fix title extraction
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/gamestar.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/gamestar.py b/youtube_dl/extractor/gamestar.py
index 7591a151e..590ccf526 100644
--- a/youtube_dl/extractor/gamestar.py
+++ b/youtube_dl/extractor/gamestar.py
@@ -1,6 +1,8 @@
# coding: utf-8
from __future__ import unicode_literals
+import re
+
from .common import InfoExtractor
from ..utils import (
int_or_none,
@@ -31,7 +33,7 @@ class GameStarIE(InfoExtractor):
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