projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
611ac37
)
[npo] Prefer aflevering_titel over titel
author
Sergey M․
<dstftw@gmail.com>
Thu, 16 Jul 2015 18:39:22 +0000
(
00:39
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 16 Jul 2015 18:39:22 +0000
(
00:39
+0600)
youtube_dl/extractor/npo.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/npo.py
b/youtube_dl/extractor/npo.py
index 28d5c90b395d07c67bce4cb7786ff5bba3e2967a..91adb23f0a140ca17d1330b42bfc526abcd281a1 100644
(file)
--- a/
youtube_dl/extractor/npo.py
+++ b/
youtube_dl/extractor/npo.py
@@
-234,7
+234,9
@@
class NPOIE(NPOBaseIE):
return {
'id': video_id,
return {
'id': video_id,
- 'title': metadata['titel'],
+ # prefer aflevering_titel if any since titel may be too generic, e.g.
+ # http://tegenlicht.vpro.nl/afleveringen/2014-2015/access-to-africa.html
+ 'title': metadata.get('aflevering_titel') or metadata['titel'],
'description': metadata['info'],
'thumbnail': metadata.get('images', [{'url': None}])[-1]['url'],
'upload_date': unified_strdate(metadata.get('gidsdatum')),
'description': metadata['info'],
'thumbnail': metadata.get('images', [{'url': None}])[-1]['url'],
'upload_date': unified_strdate(metadata.get('gidsdatum')),
@@
-414,7
+416,7
@@
class VPROIE(NPOIE):
'info_dict': {
'id': 'VPWON_1169289',
'ext': 'm4v',
'info_dict': {
'id': 'VPWON_1169289',
'ext': 'm4v',
- 'title': '
Tegenlicht
',
+ 'title': '
De toekomst komt uit Afrika
',
'description': 'md5:52cf4eefbc96fffcbdc06d024147abea',
'upload_date': '20130225',
},
'description': 'md5:52cf4eefbc96fffcbdc06d024147abea',
'upload_date': '20130225',
},