1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-01-24 05:02:50 +08:00

[RTBF] Adding the subtitle property

as it is used in many TV shows.
This commit is contained in:
Jérémie Parisel 2018-01-04 22:49:12 +01:00 committed by GitHub
parent c2f18e1c49
commit 6759b1f910
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,7 @@ class RTBFIE(InfoExtractor):
'ext': 'mp4',
'title': 'Les Diables au coeur (épisode 2)',
'description': 'Football - Diables Rouges',
'subtitle': 'Football - Diables Rouges'
'duration': 3099,
'upload_date': '20140425',
'timestamp': 1398456336,
@ -89,6 +90,7 @@ class RTBFIE(InfoExtractor):
'formats': formats,
'title': data['title'],
'description': data.get('description') or data.get('subtitle'),
'subtitle': data.get('subtitle'),
'thumbnails': thumbnails,
'duration': data.get('duration') or data.get('realDuration'),
'timestamp': int_or_none(data.get('created')),