mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-10 07:22:17 +01:00
[ie/WistiaChannel] Fix extractor (#14218)
Closes #14204 Authored by: Sojiroh
This commit is contained in:
@@ -339,11 +339,20 @@ class WistiaChannelIE(WistiaBaseIE):
|
|||||||
'title': 'The Roof S2: The Modern CRO',
|
'title': 'The Roof S2: The Modern CRO',
|
||||||
'thumbnail': r're:https?://embed(?:-ssl)?\.wistia\.com/.+\.(?:jpg|png)',
|
'thumbnail': r're:https?://embed(?:-ssl)?\.wistia\.com/.+\.(?:jpg|png)',
|
||||||
'duration': 86.487,
|
'duration': 86.487,
|
||||||
'description': 'A sales leader on The Roof? Man, they really must be letting anyone up here this season.\n',
|
'description': 'A sales leader on The Roof? Man, they really must be letting anyone up here this season. ',
|
||||||
'timestamp': 1619790290,
|
'timestamp': 1619790290,
|
||||||
'upload_date': '20210430',
|
'upload_date': '20210430',
|
||||||
},
|
},
|
||||||
'params': {'noplaylist': True, 'skip_download': True},
|
'params': {'noplaylist': True, 'skip_download': True},
|
||||||
|
}, {
|
||||||
|
# Channel with episodes structure instead of videos
|
||||||
|
'url': 'https://fast.wistia.net/embed/channel/sapab9p6qd',
|
||||||
|
'info_dict': {
|
||||||
|
'id': 'sapab9p6qd',
|
||||||
|
'title': 'Credo: An RCIA Program',
|
||||||
|
'description': '\n',
|
||||||
|
},
|
||||||
|
'playlist_mincount': 80,
|
||||||
}]
|
}]
|
||||||
_WEBPAGE_TESTS = [{
|
_WEBPAGE_TESTS = [{
|
||||||
'url': 'https://www.profitwell.com/recur/boxed-out',
|
'url': 'https://www.profitwell.com/recur/boxed-out',
|
||||||
@@ -399,8 +408,7 @@ class WistiaChannelIE(WistiaBaseIE):
|
|||||||
|
|
||||||
entries = [
|
entries = [
|
||||||
self.url_result(f'wistia:{video["hashedId"]}', WistiaIE, title=video.get('name'))
|
self.url_result(f'wistia:{video["hashedId"]}', WistiaIE, title=video.get('name'))
|
||||||
for video in traverse_obj(series, ('sections', ..., 'videos', ...)) or []
|
for video in traverse_obj(series, ('sections', ..., ('videos', 'episodes'), lambda _, v: v['hashedId']))
|
||||||
if video.get('hashedId')
|
|
||||||
]
|
]
|
||||||
|
|
||||||
return self.playlist_result(
|
return self.playlist_result(
|
||||||
|
|||||||
Reference in New Issue
Block a user