projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f20a11e
)
[bbccouk] Extend title extraction
author
Sergey M․
<dstftw@gmail.com>
Sat, 2 Jan 2016 13:42:11 +0000
(19:42 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 2 Jan 2016 13:42:11 +0000
(19:42 +0600)
youtube_dl/extractor/bbc.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/bbc.py
b/youtube_dl/extractor/bbc.py
index 5c621a32b450e54f8a4e7ce23d81dacfad3ddc4a..7b169881affaffa374a7fe7f327da237395dc977 100644
(file)
--- a/
youtube_dl/extractor/bbc.py
+++ b/
youtube_dl/extractor/bbc.py
@@
-482,7
+482,8
@@
class BBCCoUkIE(InfoExtractor):
if programme_id:
formats, subtitles = self._download_media_selector(programme_id)
- title = self._og_search_title(webpage)
+ title = self._og_search_title(webpage, default=None) or self._html_search_regex(
+ r'<h2[^>]+id="parent-title"[^>]*>(.+?)</h2>', webpage, 'title')
description = self._search_regex(
r'<p class="[^"]*medium-description[^"]*">([^<]+)</p>',
webpage, 'description', default=None)