aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrzhxeo <rzhxeo@users.noreply.github.com>2013-09-27 06:00:37 +0200
committerrzhxeo <rzhxeo@users.noreply.github.com>2013-09-27 06:00:37 +0200
commit63efc427cd4a2e0892e02e0519134d760b30814a (patch)
tree2df346c21d20c82511847b514ce900cf113d8909
parenta921f40799d2ecb4be53b3241d2dbfc80f804d73 (diff)
[RTLnowIE] Clean video title
The title of some videos has the following format: Series - Episode | Series online schauen bei ... NOW
-rw-r--r--youtube_dl/extractor/rtlnow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/rtlnow.py b/youtube_dl/extractor/rtlnow.py
index 7bb236c2b..3783aa538 100644
--- a/youtube_dl/extractor/rtlnow.py
+++ b/youtube_dl/extractor/rtlnow.py
@@ -79,7 +79,7 @@ class RTLnowIE(InfoExtractor):
msg = clean_html(note_m.group(1))
raise ExtractorError(msg)
- video_title = self._html_search_regex(r'<title>(?P<title>[^<]+)</title>',
+ video_title = self._html_search_regex(r'<title>(?P<title>[^<]+?)( \| [^<]*)?</title>',
webpage, u'title')
playerdata_url = self._html_search_regex(r'\'playerdata\': \'(?P<playerdata_url>[^\']+)\'',
webpage, u'playerdata_url')