mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-04 16:41:19 +00:00
[arte.tv:+7] Improve title extraction (Closes #3995)
This commit is contained in:
parent
d24a2b20b4
commit
74214d35c5
1 changed files with 6 additions and 1 deletions
|
@ -91,9 +91,14 @@ class ArteTVPlus7IE(InfoExtractor):
|
||||||
if not upload_date_str:
|
if not upload_date_str:
|
||||||
upload_date_str = player_info.get('VDA', '').split(' ')[0]
|
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 = {
|
info_dict = {
|
||||||
'id': player_info['VID'],
|
'id': player_info['VID'],
|
||||||
'title': player_info['VTI'],
|
'title': title,
|
||||||
'description': player_info.get('VDE'),
|
'description': player_info.get('VDE'),
|
||||||
'upload_date': unified_strdate(upload_date_str),
|
'upload_date': unified_strdate(upload_date_str),
|
||||||
'thumbnail': player_info.get('programImage') or player_info.get('VTU', {}).get('IUR'),
|
'thumbnail': player_info.get('programImage') or player_info.get('VTU', {}).get('IUR'),
|
||||||
|
|
Loading…
Reference in a new issue