1 from .vidyard
import VidyardBaseIE
, VidyardIE
2 from ..utils
import ExtractorError
, make_archive_id
, url_basename
5 class CellebriteIE(VidyardBaseIE
):
6 _VALID_URL
= r
'https?://cellebrite\.com/(?:\w+)?/(?P<id>[\w-]+)'
8 'url': 'https://cellebrite.com/en/collect-data-from-android-devices-with-cellebrite-ufed/',
10 'id': 'ZqmUss3dQfEMGpauambPuH',
11 'display_id': '16025876',
13 'title': 'Ask the Expert: Chat Capture - Collect Data from Android Devices in Cellebrite UFED',
14 'description': 'md5:dee48fe12bbae5c01fe6a053f7676da4',
15 'thumbnail': 'https://cellebrite.com/wp-content/uploads/2021/05/Chat-Capture-1024x559.png',
17 '_old_archive_ids': ['cellebrite 16025876'],
20 'url': 'https://cellebrite.com/en/how-to-lawfully-collect-the-maximum-amount-of-data-from-android-devices/',
22 'id': 'QV1U8a2yzcxigw7VFnqKyg',
23 'display_id': '29018255',
25 'title': 'How to Lawfully Collect the Maximum Amount of Data From Android Devices',
26 'description': 'md5:0e943a9ac14c374d5d74faed634d773c',
27 'thumbnail': 'https://cellebrite.com/wp-content/uploads/2022/07/How-to-Lawfully-Collect-the-Maximum-Amount-of-Data-From-Android-Devices.png',
29 '_old_archive_ids': ['cellebrite 29018255'],
33 def _real_extract(self
, url
):
34 slug
= self
._match
_id
(url
)
35 webpage
= self
._download
_webpage
(url
, slug
)
36 vidyard_url
= next(VidyardIE
._extract
_embed
_urls
(url
, webpage
), None)
38 raise ExtractorError('No Vidyard video embeds found on page')
40 video_id
= url_basename(vidyard_url
)
41 info
= self
._process
_video
_json
(self
._fetch
_video
_json
(video_id
)['chapters'][0], video_id
)
42 if info
.get('display_id'):
43 info
['_old_archive_ids'] = [make_archive_id(self
, info
['display_id'])]
44 if thumbnail
:= self
._og
_search
_thumbnail
(webpage
, default
=None):
45 info
.setdefault('thumbnails', []).append({'url': thumbnail
})
48 'description': self
._og
_search
_description
(webpage
, default
=None),