mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-16 06:15:46 +00:00
[safari] fix 404 on Manning videos
URL schema of videos /library/view/ would default 302 redirect to /videos/ but fails to redirect on some Manning videos, and got 404 this commit fix this and default schema to use /videos/
This commit is contained in:
parent
1980ff4550
commit
2d900facc4
1 changed files with 3 additions and 0 deletions
|
@ -193,6 +193,9 @@ class SafariApiIE(SafariBaseIE):
|
|||
part = self._download_json(
|
||||
url, '%s/%s' % (mobj.group('course_id'), mobj.group('part')),
|
||||
'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())
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue