Browse Source

[francetv] Use subtitle when present (Closes #6715)

totalwebcasting
Sergey M․ 9 years ago
parent
commit
36c15522c1
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      youtube_dl/extractor/francetv.py

+ 6
- 1
youtube_dl/extractor/francetv.py View File

@ -78,9 +78,14 @@ class FranceTVBaseInfoExtractor(InfoExtractor):
}) })
self._sort_formats(formats) self._sort_formats(formats)
title = info['titre']
subtitle = info.get('sous_titre')
if subtitle:
title += ' - %s' % subtitle
return { return {
'id': video_id, 'id': video_id,
'title': info['titre'],
'title': title,
'description': clean_html(info['synopsis']), 'description': clean_html(info['synopsis']),
'thumbnail': compat_urlparse.urljoin('http://pluzz.francetv.fr', info['image']), 'thumbnail': compat_urlparse.urljoin('http://pluzz.francetv.fr', info['image']),
'duration': int_or_none(info.get('real_duration')) or parse_duration(info['duree']), 'duration': int_or_none(info.get('real_duration')) or parse_duration(info['duree']),


Loading…
Cancel
Save