diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-05-20 21:43:36 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-05-20 21:43:36 +0600 |
commit | 7ded6545edb18bb008e8277b42a21d60fb6cd653 (patch) | |
tree | fe10552309a8a6c4b5ee23e92a1956f47a5a766e /youtube_dl/extractor/wistia.py | |
parent | aa5957ac49aad5165ce9ab5b9403539d61a09dcf (diff) |
[extractor/generic] Add test for wistia standard embed
Diffstat (limited to 'youtube_dl/extractor/wistia.py')
-rw-r--r-- | youtube_dl/extractor/wistia.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/wistia.py b/youtube_dl/extractor/wistia.py index 97139a35a..c634b8dec 100644 --- a/youtube_dl/extractor/wistia.py +++ b/youtube_dl/extractor/wistia.py @@ -4,6 +4,7 @@ from .common import InfoExtractor from ..utils import ( ExtractorError, int_or_none, + float_or_none, ) @@ -92,6 +93,6 @@ class WistiaIE(InfoExtractor): 'description': data.get('seoDescription'), 'formats': formats, 'thumbnails': thumbnails, - 'duration': int_or_none(data.get('duration')), + 'duration': float_or_none(data.get('duration')), 'timestamp': int_or_none(data.get('createdAt')), } |