Explorar o código

[RTLnowIE] Clean video title

The title of some videos has the following format:
Series - Episode | Series online schauen bei ... NOW
rzhxeo %!s(int64=12) %!d(string=hai) anos
pai
achega
63efc427cd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/rtlnow.py

+ 1 - 1
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')