projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d24a2b2
)
[arte.tv:+7] Improve title extraction (Closes #3995)
author
Sergey M․
<dstftw@gmail.com>
Tue, 21 Oct 2014 13:08:20 +0000
(20:08 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 21 Oct 2014 13:08:20 +0000
(20:08 +0700)
youtube_dl/extractor/arte.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/arte.py
b/youtube_dl/extractor/arte.py
index a42ebff8eb7c0d932fdbda506beb7058242087fe..844a8f563921f4ea5b31db652bbee603ae541a92 100644
(file)
--- 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]
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'],
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'),
'description': player_info.get('VDE'),
'upload_date': unified_strdate(upload_date_str),
'thumbnail': player_info.get('programImage') or player_info.get('VTU', {}).get('IUR'),