mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-22 18:22:21 +00:00
[francetv] Fix duration extraction
This commit is contained in:
parent
3f5c6d0c1b
commit
5705ee6ef8
1 changed files with 2 additions and 1 deletions
|
@ -87,7 +87,7 @@ class FranceTVBaseInfoExtractor(InfoExtractor):
|
|||
'title': info['titre'],
|
||||
'description': clean_html(info['synopsis']),
|
||||
'thumbnail': compat_urlparse.urljoin('http://pluzz.francetv.fr', info['image']),
|
||||
'duration': float_or_none(info.get('real_duration'), 1000) or parse_duration(info['duree']),
|
||||
'duration': int_or_none(info.get('real_duration')) or parse_duration(info['duree']),
|
||||
'timestamp': int_or_none(info['diffusion']['timestamp']),
|
||||
'formats': formats,
|
||||
}
|
||||
|
@ -250,6 +250,7 @@ class FranceTVIE(FranceTVBaseInfoExtractor):
|
|||
'description': 'md5:',
|
||||
'upload_date': '20150226',
|
||||
'timestamp': 1424989860,
|
||||
'duration': 5400,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue