1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-18 08:16:10 +00:00

[pbs] Improve description extraction

This commit is contained in:
Sergey M․ 2016-02-11 21:24:07 +06:00
parent 9a61dfba0c
commit b14d5e26f6

View file

@ -507,7 +507,7 @@ class PBSIE(InfoExtractor):
'id': video_id, 'id': video_id,
'display_id': display_id, 'display_id': display_id,
'title': info['title'], 'title': info['title'],
'description': info['program'].get('description'), 'description': info.get('description') or info.get('program', {}).get('description'),
'thumbnail': info.get('image_url'), 'thumbnail': info.get('image_url'),
'duration': int_or_none(info.get('duration')), 'duration': int_or_none(info.get('duration')),
'age_limit': age_limit, 'age_limit': age_limit,