aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Christlieb <thomaschristlieb@hotmail.com>2017-03-09 17:18:37 +0100
committerSergey M <dstftw@gmail.com>2017-03-10 00:18:37 +0800
commit2913821723c826a0d2bfc16427592bf2b9d6d31c (patch)
tree550615b60affa3d38319586a495634684040f674
parent0e7f9a9b48700efd40c4068b00364a7963dc9265 (diff)
[prosiebensat1] Improve title extraction (closes #12318)
-rw-r--r--youtube_dl/extractor/prosiebensat1.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/prosiebensat1.py b/youtube_dl/extractor/prosiebensat1.py
index 1245309a7..0cda992b4 100644
--- a/youtube_dl/extractor/prosiebensat1.py
+++ b/youtube_dl/extractor/prosiebensat1.py
@@ -369,7 +369,9 @@ class ProSiebenSat1IE(ProSiebenSat1BaseIE):
def _extract_clip(self, url, webpage):
clip_id = self._html_search_regex(
self._CLIPID_REGEXES, webpage, 'clip id')
- title = self._html_search_regex(self._TITLE_REGEXES, webpage, 'title')
+ title = self._html_search_regex(self._TITLE_REGEXES, webpage, 'title', default=None)
+ if title is None:
+ title = self._og_search_title(webpage)
info = self._extract_video_info(url, clip_id)
description = self._html_search_regex(
self._DESCRIPTION_REGEXES, webpage, 'description', default=None)