mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-10 00:58:17 +02:00
[pluralsight] Fix extraction (closes #11820)
This commit is contained in:
parent
bc35ed3fb6
commit
b494d6856c
@ -157,13 +157,10 @@ def _real_extract(self, url):
|
|||||||
|
|
||||||
display_id = '%s-%s' % (name, clip_id)
|
display_id = '%s-%s' % (name, clip_id)
|
||||||
|
|
||||||
parsed_url = compat_urlparse.urlparse(url)
|
|
||||||
|
|
||||||
payload_url = compat_urlparse.urlunparse(parsed_url._replace(
|
|
||||||
netloc='app.pluralsight.com', path='player/api/v1/payload'))
|
|
||||||
|
|
||||||
course = self._download_json(
|
course = self._download_json(
|
||||||
payload_url, display_id, headers={'Referer': url})['payload']['course']
|
'https://app.pluralsight.com/player/user/api/v1/player/payload',
|
||||||
|
display_id, data=urlencode_postdata({'courseId': course_name}),
|
||||||
|
headers={'Referer': url})
|
||||||
|
|
||||||
collection = course['modules']
|
collection = course['modules']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user