1 from .common
import InfoExtractor
2 from ..utils
import parse_iso8601
5 class BlackboardCollaborateIE(InfoExtractor
):
8 (?P<region>[a-z-]+)\.bbcollab\.com/
10 collab/ui/session/playback/load|
16 'url': 'https://us-lti.bbcollab.com/collab/ui/session/playback/load/0a633b6a88824deb8c918f470b22b256',
17 'md5': 'bb7a055682ee4f25fdb5838cdf014541',
19 'id': '0a633b6a88824deb8c918f470b22b256',
20 'title': 'HESI A2 Information Session - Thursday, May 6, 2021 - recording_1',
23 'timestamp': 1620331399,
24 'upload_date': '20210506',
28 'url': 'https://us.bbcollab.com/collab/ui/session/playback/load/76761522adfe4345a0dee6794bbcabda',
29 'only_matching': True,
32 'url': 'https://ca.bbcollab.com/collab/ui/session/playback/load/b6399dcb44df4f21b29ebe581e22479d',
33 'only_matching': True,
36 'url': 'https://eu.bbcollab.com/recording/51ed7b50810c4444a106e48cefb3e6b5',
37 'only_matching': True,
40 'url': 'https://au.bbcollab.com/collab/ui/session/playback/load/2bccf7165d7c419ab87afc1ec3f3bb15',
41 'only_matching': True,
45 def _real_extract(self
, url
):
46 mobj
= self
._match
_valid
_url
(url
)
47 region
= mobj
.group('region')
48 video_id
= mobj
.group('id')
49 info
= self
._download
_json
(
50 f
'https://{region}.bbcollab.com/collab/api/csa/recordings/{video_id}/data', video_id
)
51 duration
= info
.get('duration')
53 upload_date
= info
.get('created')
54 streams
= info
['streams']
55 formats
= [{'format_id': k
, 'url': url
} for k
, url
in streams
.items()]
61 'timestamp': parse_iso8601(upload_date
),