mirror of
https://source.netsyms.com/Mirrors/youtube-dl
synced 2024-11-03 03:40:20 +00:00
[extractor/generic] Add test for wistia standard embed
This commit is contained in:
parent
aa5957ac49
commit
7ded6545ed
@ -742,6 +742,22 @@ class GenericIE(InfoExtractor):
|
|||||||
'timestamp': 1401832161,
|
'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
|
# Soundcloud embed
|
||||||
{
|
{
|
||||||
'url': 'http://nakedsecurity.sophos.com/2014/10/29/sscc-171-are-you-sure-that-1234-is-a-bad-password-podcast/',
|
'url': 'http://nakedsecurity.sophos.com/2014/10/29/sscc-171-are-you-sure-that-1234-is-a-bad-password-podcast/',
|
||||||
|
@ -4,6 +4,7 @@ from .common import InfoExtractor
|
|||||||
from ..utils import (
|
from ..utils import (
|
||||||
ExtractorError,
|
ExtractorError,
|
||||||
int_or_none,
|
int_or_none,
|
||||||
|
float_or_none,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -92,6 +93,6 @@ class WistiaIE(InfoExtractor):
|
|||||||
'description': data.get('seoDescription'),
|
'description': data.get('seoDescription'),
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
'thumbnails': thumbnails,
|
'thumbnails': thumbnails,
|
||||||
'duration': int_or_none(data.get('duration')),
|
'duration': float_or_none(data.get('duration')),
|
||||||
'timestamp': int_or_none(data.get('createdAt')),
|
'timestamp': int_or_none(data.get('createdAt')),
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user