projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e7f9a9
)
[prosiebensat1] Improve title extraction (closes #12318)
author
Thomas Christlieb
<thomaschristlieb@hotmail.com>
Thu, 9 Mar 2017 16:18:37 +0000
(17:18 +0100)
committer
Sergey M
<dstftw@gmail.com>
Thu, 9 Mar 2017 16:18:37 +0000
(
00:18
+0800)
youtube_dl/extractor/prosiebensat1.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/prosiebensat1.py
b/youtube_dl/extractor/prosiebensat1.py
index 1245309a7ebc1e5621ee4c566ef64f16676c6011..0cda992b40ce82652c093036d23f70beab4b6729 100644
(file)
--- 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)