diff options
author | rzhxeo <[email protected]> | 2013-09-27 06:00:37 +0200 |
---|---|---|
committer | rzhxeo <[email protected]> | 2013-09-27 06:00:37 +0200 |
commit | 63efc427cd4a2e0892e02e0519134d760b30814a (patch) | |
tree | 2df346c21d20c82511847b514ce900cf113d8909 | |
parent | a921f40799d2ecb4be53b3241d2dbfc80f804d73 (diff) | |
download | youtube-dl-63efc427cd4a2e0892e02e0519134d760b30814a.tar.gz youtube-dl-63efc427cd4a2e0892e02e0519134d760b30814a.zip |
[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.py | 2 |
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') |