2024-07-05 19:02:35 -04:00
|
|
|
from .vidyard import VidyardBaseIE, VidyardIE
|
|
|
|
from ..utils import ExtractorError, make_archive_id, url_basename
|
2022-07-13 03:03:18 -04:00
|
|
|
|
|
|
|
|
2024-07-05 19:02:35 -04:00
|
|
|
class CellebriteIE(VidyardBaseIE):
|
2022-07-13 03:03:18 -04:00
|
|
|
_VALID_URL = r'https?://cellebrite\.com/(?:\w+)?/(?P<id>[\w-]+)'
|
|
|
|
_TESTS = [{
|
|
|
|
'url': 'https://cellebrite.com/en/collect-data-from-android-devices-with-cellebrite-ufed/',
|
|
|
|
'info_dict': {
|
2024-07-05 19:02:35 -04:00
|
|
|
'id': 'ZqmUss3dQfEMGpauambPuH',
|
|
|
|
'display_id': '16025876',
|
2022-07-13 03:03:18 -04:00
|
|
|
'ext': 'mp4',
|
|
|
|
'title': 'Ask the Expert: Chat Capture - Collect Data from Android Devices in Cellebrite UFED',
|
2024-07-05 19:02:35 -04:00
|
|
|
'description': 'md5:dee48fe12bbae5c01fe6a053f7676da4',
|
|
|
|
'thumbnail': 'https://cellebrite.com/wp-content/uploads/2021/05/Chat-Capture-1024x559.png',
|
|
|
|
'duration': 455.979,
|
|
|
|
'_old_archive_ids': ['cellebrite 16025876'],
|
2024-06-11 19:09:58 -04:00
|
|
|
},
|
2022-07-13 03:03:18 -04:00
|
|
|
}, {
|
|
|
|
'url': 'https://cellebrite.com/en/how-to-lawfully-collect-the-maximum-amount-of-data-from-android-devices/',
|
|
|
|
'info_dict': {
|
2024-07-05 19:02:35 -04:00
|
|
|
'id': 'QV1U8a2yzcxigw7VFnqKyg',
|
|
|
|
'display_id': '29018255',
|
2022-07-13 03:03:18 -04:00
|
|
|
'ext': 'mp4',
|
2024-07-05 19:02:35 -04:00
|
|
|
'title': 'How to Lawfully Collect the Maximum Amount of Data From Android Devices',
|
|
|
|
'description': 'md5:0e943a9ac14c374d5d74faed634d773c',
|
2022-07-13 03:03:18 -04:00
|
|
|
'thumbnail': 'https://cellebrite.com/wp-content/uploads/2022/07/How-to-Lawfully-Collect-the-Maximum-Amount-of-Data-From-Android-Devices.png',
|
2024-07-05 19:02:35 -04:00
|
|
|
'duration': 134.315,
|
|
|
|
'_old_archive_ids': ['cellebrite 29018255'],
|
2024-06-11 19:09:58 -04:00
|
|
|
},
|
2022-07-13 03:03:18 -04:00
|
|
|
}]
|
|
|
|
|
|
|
|
def _real_extract(self, url):
|
2024-07-05 19:02:35 -04:00
|
|
|
slug = self._match_id(url)
|
|
|
|
webpage = self._download_webpage(url, slug)
|
|
|
|
vidyard_url = next(VidyardIE._extract_embed_urls(url, webpage), None)
|
|
|
|
if not vidyard_url:
|
|
|
|
raise ExtractorError('No Vidyard video embeds found on page')
|
|
|
|
|
|
|
|
video_id = url_basename(vidyard_url)
|
|
|
|
info = self._process_video_json(self._fetch_video_json(video_id)['chapters'][0], video_id)
|
|
|
|
if info.get('display_id'):
|
|
|
|
info['_old_archive_ids'] = [make_archive_id(self, info['display_id'])]
|
|
|
|
if thumbnail := self._og_search_thumbnail(webpage, default=None):
|
|
|
|
info.setdefault('thumbnails', []).append({'url': thumbnail})
|
2022-07-13 03:03:18 -04:00
|
|
|
|
|
|
|
return {
|
2024-07-05 19:02:35 -04:00
|
|
|
'description': self._og_search_description(webpage, default=None),
|
|
|
|
**info,
|
2022-07-13 03:03:18 -04:00
|
|
|
}
|