aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/francetv.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-07-18 22:43:42 +0600
committerSergey M․ <dstftw@gmail.com>2015-07-18 22:43:42 +0600
commit5705ee6ef8d49175bf4afac36af4b3b9a4e72596 (patch)
treefa96eea4aa784bc20328fb25724220afa4da2414 /youtube_dl/extractor/francetv.py
parent3f5c6d0c1b955f9312b83fb0e1f3ae59d1230c82 (diff)
[francetv] Fix duration extraction
Diffstat (limited to 'youtube_dl/extractor/francetv.py')
-rw-r--r--youtube_dl/extractor/francetv.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/francetv.py b/youtube_dl/extractor/francetv.py
index 827400172..d4f98ca16 100644
--- a/youtube_dl/extractor/francetv.py
+++ b/youtube_dl/extractor/francetv.py
@@ -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,
},
},
{