aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/arte.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-10-21 20:08:20 +0700
committerSergey M․ <dstftw@gmail.com>2014-10-21 20:08:20 +0700
commit74214d35c592976ab48b3c89577df586705059e7 (patch)
treec8a6b88a533e1245174a1a7e410bf88ae599ca8f /youtube_dl/extractor/arte.py
parentd24a2b20b4908b01f9b5bfa88cd293c189fe6475 (diff)
[arte.tv:+7] Improve title extraction (Closes #3995)
Diffstat (limited to 'youtube_dl/extractor/arte.py')
-rw-r--r--youtube_dl/extractor/arte.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/youtube_dl/extractor/arte.py b/youtube_dl/extractor/arte.py
index a42ebff8e..844a8f563 100644
--- a/youtube_dl/extractor/arte.py
+++ b/youtube_dl/extractor/arte.py
@@ -91,9 +91,14 @@ class ArteTVPlus7IE(InfoExtractor):
if not upload_date_str:
upload_date_str = player_info.get('VDA', '').split(' ')[0]
+ title = player_info['VTI'].strip()
+ subtitle = player_info.get('VSU', '').strip()
+ if subtitle:
+ title += ' - %s' % subtitle
+
info_dict = {
'id': player_info['VID'],
- 'title': player_info['VTI'],
+ 'title': title,
'description': player_info.get('VDE'),
'upload_date': unified_strdate(upload_date_str),
'thumbnail': player_info.get('programImage') or player_info.get('VTU', {}).get('IUR'),