mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-26 12:11:52 +00:00
[npo] Prefer aflevering_titel over titel
This commit is contained in:
parent
611ac379bb
commit
5ba761eb85
1 changed files with 4 additions and 2 deletions
|
@ -234,7 +234,9 @@ class NPOIE(NPOBaseIE):
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'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'],
|
'description': metadata['info'],
|
||||||
'thumbnail': metadata.get('images', [{'url': None}])[-1]['url'],
|
'thumbnail': metadata.get('images', [{'url': None}])[-1]['url'],
|
||||||
'upload_date': unified_strdate(metadata.get('gidsdatum')),
|
'upload_date': unified_strdate(metadata.get('gidsdatum')),
|
||||||
|
@ -414,7 +416,7 @@ class VPROIE(NPOIE):
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': 'VPWON_1169289',
|
'id': 'VPWON_1169289',
|
||||||
'ext': 'm4v',
|
'ext': 'm4v',
|
||||||
'title': 'Tegenlicht',
|
'title': 'De toekomst komt uit Afrika',
|
||||||
'description': 'md5:52cf4eefbc96fffcbdc06d024147abea',
|
'description': 'md5:52cf4eefbc96fffcbdc06d024147abea',
|
||||||
'upload_date': '20130225',
|
'upload_date': '20130225',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue