1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-12-23 23:17:53 +01:00

[pluralsight] Fix extraction (closes #11820)

This commit is contained in:
Sergey M․ 2017-01-24 02:50:49 +07:00
parent bc35ed3fb6
commit b494d6856c
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -157,13 +157,10 @@ class PluralsightIE(PluralsightBaseIE):
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(
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']