Browse Source

[francetv] Fix duration

master
Sergey M․ 9 years ago
parent
commit
f05d0e73c6
1 changed files with 2 additions and 1 deletions
  1. 3
      youtube_dl/extractor/francetv.py

3
youtube_dl/extractor/francetv.py

@ -14,6 +14,7 @@ from ..utils import (
clean_html,
ExtractorError,
int_or_none,
float_or_none,
parse_duration,
)
@ -86,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': parse_duration(info['duree']),
'duration': float_or_none(info.get('real_duration'), 1000) or parse_duration(info['duree']),
'timestamp': int_or_none(info['diffusion']['timestamp']),
'formats': formats,
}

Loading…
Cancel
Save