This commit is contained in:
cdarlint 2024-07-25 17:41:58 +07:00 committed by GitHub
commit c8ea79651a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -193,6 +193,9 @@ class SafariApiIE(SafariBaseIE):
part = self._download_json( part = self._download_json(
url, '%s/%s' % (mobj.group('course_id'), mobj.group('part')), url, '%s/%s' % (mobj.group('course_id'), mobj.group('part')),
'Downloading part JSON') 'Downloading part JSON')
part['web_url'] = part['asset_base_url'].replace('library/view',
'videos') +\
part['videoclips'][0]['reference_id'] + '/'
return self.url_result(part['web_url'], SafariIE.ie_key()) return self.url_result(part['web_url'], SafariIE.ie_key())