projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e129c5b
)
[gamestar] Fix title extraction
author
Naglis Jonaitis
<njonaitis@gmail.com>
Thu, 26 Feb 2015 14:22:05 +0000
(16:22 +0200)
committer
Naglis Jonaitis
<njonaitis@gmail.com>
Thu, 26 Feb 2015 14:22:05 +0000
(16:22 +0200)
youtube_dl/extractor/gamestar.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/gamestar.py
b/youtube_dl/extractor/gamestar.py
index 7591a151ea352ea4d3c3b066d68bffb1141c513f..590ccf5266d61e67772a1276a83bfdb6919abc63 100644
(file)
--- 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