aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-05-20 21:43:36 +0600
committerSergey M․ <dstftw@gmail.com>2016-05-20 21:43:36 +0600
commit7ded6545edb18bb008e8277b42a21d60fb6cd653 (patch)
treefe10552309a8a6c4b5ee23e92a1956f47a5a766e /youtube_dl/extractor
parentaa5957ac49aad5165ce9ab5b9403539d61a09dcf (diff)
[extractor/generic] Add test for wistia standard embed
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/generic.py16
-rw-r--r--youtube_dl/extractor/wistia.py3
2 files changed, 18 insertions, 1 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index 632d7b5f0..9883cde61 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -742,6 +742,22 @@ class GenericIE(InfoExtractor):
'timestamp': 1401832161,
},
},
+ # Wistia standard embed (async)
+ {
+ 'url': 'https://www.getdrip.com/university/brennan-dunn-drip-workshop/',
+ 'info_dict': {
+ 'id': '807fafadvk',
+ 'ext': 'mp4',
+ 'title': 'Drip Brennan Dunn Workshop',
+ 'description': 'a JV Webinars video from getdrip-1',
+ 'duration': 4986.95,
+ 'upload_date': '20160518',
+ 'timestamp': 1463607249,
+ },
+ 'params': {
+ 'skip_download': True,
+ }
+ },
# Soundcloud embed
{
'url': 'http://nakedsecurity.sophos.com/2014/10/29/sscc-171-are-you-sure-that-1234-is-a-bad-password-podcast/',
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')),
}