]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[pluralsight] Fix extraction (closes #11820)
authorSergey M․ <dstftw@gmail.com>
Mon, 23 Jan 2017 19:50:49 +0000 (02:50 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 23 Jan 2017 19:51:45 +0000 (02:51 +0700)
youtube_dl/extractor/pluralsight.py

index 0ffd41ecd3b73bdaaba3b27cd1638cdf0383103e..5c798e874837ff1704650fa991d5b07cde8ab210 100644 (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']